How can I install the VS Code extension on WSL? #894
-
Hi 👋 I've followed the README and finally ran However, VS Code (neither on the Windows nor on the WSL side) seems to have the installed extension available. What can I do so the VS Code server inside WSL will use tsgo? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Never mind. I figured it out. When trying to install the extension with the command
The You can check this using: which code
# prints in my case
# /mnt/c/Program Files/Microsoft VS Code/bin/code This meant that VS Code was trying to install it for Windows instead. To make the extension get installed for the VS Code Server inside WSL, run the command inside a VS Code window which is connected to WSL. which code
# inside a VS Code terminal prints
# /home/michael/.vscode-server/bin/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/bin/remote-cli/code |
Beta Was this translation helpful? Give feedback.
-
FYI we now publish the extension to the VS Code marketplace: https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.native-preview |
Beta Was this translation helpful? Give feedback.
FYI we now publish the extension to the VS Code marketplace: https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.native-preview