VS Code WSL Problem — wslCode.sh /bin/code Not Found

tanut aran
Jun 6, 2024

--

Solution

The path VS code calling remote-cli is mismatch.

When we see inside it looklike the VS Code patch make the nested directory under the previous one.

89de5a8d4d6205e5b11647eb6a74844ca23d2573 which is the version has ANOTHER subpath 89de5a8d4d6205e5b11647eb6a74844ca23d2573–1717682157

Move it up

With the command we move it up there

 mv .vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573/89de5a8d4d6205e5b11647eb6a74844ca23d2573-1717682157 .vscode-server/bin 

Then remove the directory and then rename the patch directory to be the main patch version 89de5a8d4d6205e5b11647eb6a74844ca23d2573

rmdir .vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573

mv .vscode-server/bin/89de5a8d4d6205e5b11647eb6a74844ca23d2573{-1717682157,}

Here you go and see it is working again !

--

--