You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remote WSL cli: support installing extensions #2589
Martin Aeschlimann (@aeschli) Do you know of any other method for installing extensions on a remote host? I automated my Windows setup with Boxstarter and would like to non-interactively install extensions in WSL.
Related issues requesting similar functionality are #2749, #2704 and #2393.
Kostas Chatzikokolakis (@chatziko)
Unfortunately not, I just keep a list of extensions I have to install manually after the installation script. If you put the effort in and come up with a solution, please let me know!
Zhang Yuefeng (@ZhangYuef) Installing using the extension viewlet should work. Please file a separate issue with more details.
This issue is about installing a remote extension through the remote cli.
Zhang Yuefeng (@ZhangYuef) Installing using the extension viewlet should work. Please file a separate issue with more details.
This issue is about installing a remote extension through the remote cli.
Thank for pointing out. I open a new issue #3853 to find help for my problem.
I workaround this issue by create a alias to Windows binary: alias code="cmd.exe /c 'C:\Program Files\Microsoft VS Code\bin\code'"
By doing this, run code --install-extension works.
It enable automate installation of extensions but it install only the Windows side of the VS Code.
I still need open WSL connection to enable the extensions in WSL side of the VS Code.
This is theoretically automatable if you have Windows Pro with enabled remote execution. Ansimble can work with Windows host. If you have a strong IT team behind your back you can execute Powershell script or Playbook. Ask your corporate IT. Don't do it at home!
Activity
aeschli commentedon Mar 21, 2020
Yes, the code cli in WSL does not support installing extensions.
You need to use the extension viewlet in the remote window.
[-]error when trying to install extension from WSL2[/-][+]Remote WSL cli: support installing extensions[/+]rapgru commentedon Apr 25, 2020
Martin Aeschlimann (@aeschli) Do you know of any other method for installing extensions on a remote host? I automated my Windows setup with Boxstarter and would like to non-interactively install extensions in WSL.
Related issues requesting similar functionality are #2749, #2704 and #2393.
chatziko commentedon Jul 2, 2020
Raphael Gruber (@rapgru) : just curious, did you find a workaround for this?
rapgru commentedon Jul 2, 2020
Kostas Chatzikokolakis (@chatziko)
Unfortunately not, I just keep a list of extensions I have to install manually after the installation script. If you put the effort in and come up with a solution, please let me know!
ZhangYuef commentedon Oct 14, 2020
Does anyone have ideas on this issue?
I cannot install Python extension on a remote host by using extension viewlet.
aeschli commentedon Oct 14, 2020
Zhang Yuefeng (@ZhangYuef) Installing using the extension viewlet should work. Please file a separate issue with more details.
This issue is about installing a remote extension through the remote cli.
ZhangYuef commentedon Oct 15, 2020
Thank for pointing out. I open a new issue #3853 to find help for my problem.
marwan-at-work commentedon Oct 27, 2020
Would love to see this issue get resolved as this can unlock a lot of automation for remote development
alanlivio commentedon Oct 27, 2020
I workaround this issue by create a alias to Windows binary:
alias code="cmd.exe /c 'C:\Program Files\Microsoft VS Code\bin\code'"By doing this, run
code --install-extensionworks.It enable automate installation of extensions but it install only the Windows side of the VS Code.
I still need open WSL connection to enable the extensions in WSL side of the VS Code.
hasayakey commentedon Dec 29, 2020
easy!!! in wsl use code . to open current folder in VSCode, then Extensions->install from VSIX
marwan-at-work commentedon Dec 29, 2020
hasayakey (@hasayakey) that is not automat-able
PavelSosin-320 commentedon Dec 29, 2020
This is theoretically automatable if you have Windows Pro with enabled remote execution. Ansimble can work with Windows host. If you have a strong IT team behind your back you can execute Powershell script or Playbook. Ask your corporate IT. Don't do it at home!
alanlivio commentedon Jan 4, 2021
Yes hasayakey (@hasayakey) it not automatable.
aeschli commentedon Jan 19, 2021
The remote CLI in the integrated terminal of remote windows now supports:
code --install-extension idOrPathToVSIXin combination with--forcecode --uninstall-extension idOrPathToVSIXin combination with--forcecode --list-extensionsin combination with--show-versionand--category