Middle mouse button doesn't scroll in VS Code, as discussed here and here. Windows users can use this autohotkey script as a workaround.
The script can be found here.
Note that the script only modifies the middle click if the cursor is inside the text area. If the cursor is outside of the text area, middle click is unaffected.