microsoft / microsoft/vscode-remote-release
No support for the --extensions-dir flag when using WSL
@aeschli is already working on this.
Since Jun 20, 2021.
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Issue Type: Bug
I'm running VSCode through WSL2 on a Windows 10 host and an Ubuntu 20.04 virtual machine, the output of 'which code' in the wsl terminal is: /mnt/c/Users/myuser/AppData/Local/Programs/Microsoft VS Code/bin/code the default location for extensions is: '~/.vscode-server/extensions/'
Steps to Reproduce:
- from the wsl terminal launch 'code --extensions-dir ~/path/to/extensions'
- get a warning from terminal: Ignoring option extensions-dir: not supported for code.
- try to install an extension, verify that it was placed in the default location
- try code --help in the wsl terminal to verify that the flag isn't listed in the output
-
- try code --help in the powershell terminal to verify that the flag is present in the output
What I expect:
- I expect to be able to use the flag from the wsl terminal
- I expect to be able to set the extensions folder to a location in the wsl file system
Output of verbose mode:
Ignoring option extensions-dir: not supported for code.
Invoking: /mnt/c/Users/myuser/AppData/Local/Programs/Microsoft VS Code/Code.exe resources/app/out/cli.js --verbose --remote=wsl+Ubuntu-20.04 in /mnt/c/Users/myuser/AppData/Local/Programs/Microsoft VS Code
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: Yes
Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2400) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.84GB (6.32GB free) |
| Process Argv | --folder-uri=vscode-remote://wsl+Ubuntu-20.04/home/ldm --remote=wsl+Ubuntu-20.04 --crash-reporter-id 0794616d-f296-42ae-9e1c-3e53ef456cb7 |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | WSL: Ubuntu-20.04 |
| OS | Linux x64 5.4.72-microsoft-standard-WSL2 |
| CPUs | Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 x 2399) |
| Memory (System) | 12.36GB (10.51GB free) |
| VM | 0% |
Extensions (4)
| Extension | Author (truncated) | Version |
|---|---|---|
| remote-containers | ms- | 0.183.0 |
| remote-wsl | ms- | 0.56.5 |
| gitlens | eam | 11.5.1 |
| jupyter | ms- | 2021.6.999406279 |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt678:30270856
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30323308
vscorehov:30309549
vscod805:30301674
binariesv615cf:30323120
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.