vscode: `--extensions-dir` option to `code` cli ignored in 1.74.0
Type: Bug
Steps to reproduce
- Make sure you have an extension installed in VSCode (any extension)
- Run
mkdir foo
to make an empty directory - Run
mkdir bar
to make an empty directory - Run
code --extensions-dir foo bar
to open directorybar
in VSCode using the empty directoryfoo
as the extensions dir - Run
"Extensions: Show Enabled Extensions"
command from the command palette in the newly opened workspace
Expected behaviour
There should be no extensions in the list, because code
was called with an empty extensions dir
Actual behaviour
It shows the full list of extensions from the default extension dir. Also, I can confirm that these extensions are actually activated (ie not just displayed in the list)
Notes
- This worked fine in 1.73.1
- Interestingly, running
code --extensions-dir foo --list-extensions
lists the correct extensions
System info
VS Code version: Code 1.74.0 (5235c6bb189b60b01b1f49062f4ffa42384f8c91, 2022-12-05T16:43:37.594Z) OS version: Darwin x64 21.5.0 Modes: Sandboxed: No
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i9-9880H CPU @ 2.30GHz (16 x 2300) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 1, 2, 2 |
Memory (System) | 32.00GB (4.14GB free) |
Process Argv | –crash-reporter-id 99d35f96-61a9-461b-a60d-f915d32f3eee |
Screen Reader | no |
VM | 0% |
Extensions (102)
Extension | Author (truncated) | Version |
---|---|---|
better-comments | aar | 3.0.2 |
Bookmarks | ale | 13.3.1 |
tsl-problem-matcher | amo | 0.6.2 |
andreas-talon | And | 3.0.0 |
vscode-neovim-hacked | asv | 0.0.85 |
agda-mode | ban | 0.3.11 |
markdown-checkbox | bie | 0.4.0 |
markdown-mermaid | bie | 1.16.0 |
mermaid-markdown-syntax-highlighting | bpr | 1.5.0 |
vscode-tailwindcss | bra | 0.9.1 |
turbo-console-log | Cha | 2.6.2 |
path-intellisense | chr | 2.8.3 |
regex | chr | 0.4.0 |
doxdocgen | csc | 1.4.0 |
vscode-eslint | dba | 2.2.6 |
vscode-dash | dee | 2.4.0 |
dendron-markdown-shortcuts | den | 0.12.1 |
chmod | dle | 1.1.1 |
githistory | don | 0.6.19 |
xml | Dot | 2.5.1 |
viml | dun | 0.1.7 |
gitlens | eam | 13.1.1 |
EditorConfig | Edi | 0.16.4 |
prettier-vscode | esb | 9.10.3 |
shell-format | fox | 7.2.2 |
remotehub | Git | 0.48.0 |
vscode-pull-request-github | Git | 0.56.0 |
mdmath | goe | 2.7.4 |
vscode-graphql | Gra | 0.8.4 |
vscode-graphql-execution | Gra | 0.1.6 |
vscode-graphql-syntax | Gra | 1.0.5 |
rest-client | hum | 0.25.1 |
elixir-ls | Jak | 0.12.0 |
better-cpp-syntax | jef | 1.17.2 |
cmake-language-support-vscode | jos | 0.0.7 |
jq-syntax-highlighting | jq- | 0.0.2 |
vscode-tree-sitter-query | jri | 0.0.1 |
bash-ide-vscode | mad | 1.22.0 |
syntax-project-pbxproj | mar | 0.1.3 |
rainbow-csv | mec | 3.5.0 |
git-graph | mhu | 1.30.0 |
vscode-edits-history | mis | 0.1.6 |
lalrpop-highlight | mnx | 0.0.1 |
vscode-talonscript | mro | 0.3.13 |
vscode-docker | ms- | 1.23.2 |
csharp | ms- | 1.25.2 |
vscode-dotnet-runtime | ms- | 1.6.0 |
black-formatter | ms- | 2022.7.13271013 |
isort | ms- | 2022.9.13271012 |
python | ms- | 2022.20.1 |
vscode-pylance | ms- | 2022.12.21 |
jupyter | ms- | 2022.11.1003412109 |
jupyter-keymap | ms- | 1.0.0 |
jupyter-renderers | ms- | 1.0.12 |
vscode-jupyter-cell-tags | ms- | 0.1.6 |
vscode-jupyter-slideshow | ms- | 0.1.5 |
remote-containers | ms- | 0.266.1 |
remote-ssh | ms- | 0.94.0 |
remote-ssh-edit | ms- | 0.84.0 |
azure-repos | ms- | 0.24.0 |
cmake-tools | ms- | 1.12.27 |
cpptools | ms- | 1.13.7 |
cpptools-extension-pack | ms- | 1.3.0 |
remote-explorer | ms- | 0.0.3 |
remote-repositories | ms- | 0.26.0 |
vscode-github-issue-notebooks | ms- | 0.0.128 |
vsliveshare | ms- | 1.0.5788 |
vsliveshare-audio | ms- | 0.1.91 |
vscode-react-native | msj | 1.10.0 |
vscode-paste-image | mus | 1.0.4 |
java-prettier-formatter | mwp | 0.1.5 |
autodocstring | njp | 0.6.1 |
angular-console | nrw | 17.27.1 |
command-server | pok | 0.8.2 |
cursorless | pok | 0.26.522 |
git-branchless | pok | 0.0.1 |
parse-tree | pok | 0.24.0 |
ruby | reb | 0.28.1 |
LiveServer | rit | 5.7.9 |
format-code-action | roh | 0.1.0 |
rust-analyzer | rus | 0.3.1317 |
multi-command | ryu | 1.6.0 |
scala | sca | 0.5.6 |
metals | sca | 1.20.0 |
vscode-scheme | sjh | 0.4.0 |
vscode-fileutils | sle | 3.5.0 |
sourcery | sou | 1.0.1 |
rewrap | stk | 1.16.3 |
vscode-open-in-github | sys | 1.17.0 |
even-better-toml | tam | 0.19.0 |
rest-book | tan | 6.2.1 |
vscode-lua | tri | 0.12.4 |
cmake | twx | 0.0.17 |
commands | use | 1.6.0 |
intellicode-api-usage-examples | Vis | 0.2.6 |
vscodeintellicode | Vis | 1.2.29 |
vscodeintellicode-completions | Vis | 1.0.20 |
vscode-icons | vsc | 12.0.1 |
vscode-alternate-file | wil | 0.3.1 |
vscode-ruby | win | 0.28.0 |
JavaScriptSnippets | xab | 1.8.0 |
type-challenges | YRM | 1.10.0 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1cf:30587006
3biah626:30602489
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
f6dab269:30613381
fim-prod:30623723
vscsbc:30628655
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 20 (15 by maintainers)
@rtpt-alexanderneumann Using
extensions.json
now is an implementation detail to support the new upcoming feature profiles - #116740. Your issue of hardcoded paths is fixed in our latest insiders here - https://github.com/microsoft/vscode/issues/169006. This fix will be available in our next release.