The accepted answer didn't work for me, but this did:
code --folder-uri vscode-remote://ssh-remote+<remoteHost><remotePath>