Repository navigation
Description
Type: Bug
- VS Code Version: 1.143.1 (commit e646868)
- OS Version: Windows x64 (desktop client); remote is a GitHub Codespace (Debian 12)
- Settings Sync: on, signed in with GitHub; Extensions and MCP Servers unchecked in "Settings Sync: Configure"
Steps to reproduce
- At some point, sync extensions with Settings Sync (GitHub account), so the cloud store has an Extensions resource.
- Later, run "Settings Sync: Configure" and uncheck Extensions. Leave Settings Sync on for settings, keybindings, etc.
- From desktop VS Code, create and connect to a new Codespace whose
devcontainer.jsonlists onlyanthropic.claude-codeundercustomizations.vscode.extensions.
Expected: The Codespace has only the extensions from devcontainer.json (plus image and Codespaces defaults). I excluded extensions from sync, and the Settings Sync docs say extensions aren't synced to remote windows.
Actual: About 40 extensions from the old synced list (for me, the extensions I had installed: Python, Jupyter, C#, PowerShell, other AI coding agents, etc.) are installed into the Codespace about 3 seconds after the server starts. The same repository opened in VS Code for the Web gets only the devcontainer.json extensions.
Cause
RemoteExtensionsInitializerContribution in src/vs/workbench/contrib/extensions/electron-browser/remoteExtensionsInit.ts checks only that Settings Sync as a whole is enabled. It then reads the Extensions resource from the sync store:
// Skip: Settings Sync is disabled
if (!this.userDataSyncEnablementService.isEnabled()) {
return;
}
...
const userData = await userDataSyncStoreClient.readResource(SyncResource.Extensions, null);It never checks whether the Extensions resource is enabled. Unchecking Extensions stops future uploads but leaves the last uploaded list in the store, so every new remote gets that stale list.
Suggested fix: also skip when the Extensions resource is disabled (e.g., !this.userDataSyncEnablementService.isResourceEnabled(SyncResource.Extensions)).
Why it matters
People use dev containers and Codespaces to isolate untrusted or project-specific environments, and carefully list the extensions that should run there. These installs bypass that, and they pass skipPublisherTrust, so publishers the user never trusted in that remote are installed without a prompt. Unchecking Extensions is the documented way to keep extensions out of sync, so users reasonably believe they're protected.
Workarounds: "Settings Sync: Show Synced Data" → "Reset Synced Data" (deletes the stale list), turn Settings Sync off entirely, or add extensions to settingsSync.ignoredExtensions (honored by generatePreview).
Log evidence
Remote server arguments (only two extensions requested, sync disabled on the server):
"install-extension":["dbaeumer.vscode-eslint","anthropic.claude-code"],
"install-builtin-extension":["GitHub.codespaces","GitHub.vscode-pull-request-github","Github.copilot"],
"enable-sync":false, "do-not-sync":true
Client-initiated installs, matching the options in doInitialize (donotIncludePackAndDependencies, skipPublisherTrust):
2026-10-24 20:37:02.243 [info] Installing extension: openai.chatgpt {"installPreReleaseVersion":false,"donotIncludePackAndDependencies":true,"context":{"skipPublisherTrust":true,"clientTargetPlatform":"win32-x64"},...,"productVersion":{"version":"1.143.1","date":"2026-10-22T17:23:22Z"}}
(41 installs with these options between 20:37:01 and 20:37:06.)
VS Code version: Code 1.143.1 (e646868, 2026-10-22T17:23:22Z)
OS version: Windows_NT x64 10.0.26300
Modes:
Remote OS version: Linux x64 6.8.0-1064-azure
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | 13th Gen Intel(R) Core(TM) i7-13800H (20 x 2918) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x8086, DEVICE=0xa7a0 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=31.0.101.4314 ACTIVE GPU1: VENDOR= 0x10de, DEVICE=0x2860 [NVIDIA GeForce RTX 4070 Laptop GPU], DRIVER_VERSION=32.0.15.9597 GPU2: VENDOR= 0x8086, DEVICE=0xa7a0 [Intel(R) Iris(R) Xe Graphics], DRIVER_VERSION=31.0.101.4314 GPU3: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9711 Machine model name: Machine model version: direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.64GB (4.75GB free) |
| Process Argv | -n --crash-reporter-id 5b5db6a0-b1b2-4e3b-be73-73688cfa6daf |
| Screen Reader | no |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | Codespaces: ominous trout |
| OS | Linux x64 6.8.0-1064-azure |
| CPUs | AMD EPYC 7763 64-Core Processor (2 x 0) |
| Memory (System) | 7.76GB (4.88GB free) |
| VM | 0% |
| Item | Value |
|---|---|
| Remote | Dev Container: SoCloverAI @ desktop-linux |
| OS | Linux x64 6.6.87.2-microsoft-standard-WSL2 |
| CPUs | 13th Gen Intel(R) Core(TM) i7-13800H (20 x 0) |
| Memory (System) | 15.44GB (5.77GB free) |
| VM | 0% |
Extensions (33)
| Name | Identifier | Author | Version |
|---|---|---|---|
| Bookmarks | alefragnani.bookmarks | alefragnani | 14.1.1 |
| Tailwind CSS IntelliSense | bradlc.vscode-tailwindcss | bradlc | 0.16.0 |
| Ruff | charliermarsh.ruff | charliermarsh | 2026.90.0 |
| Path Intellisense | christian-kohler.path-intellisense | christian-kohler | 2.10.0 |
| ESLint | dbaeumer.vscode-eslint | dbaeumer | 3.0.34 |
| Docker DX | docker.docker | docker | 0.18.0 |
| Git History | donjayamanne.githistory | donjayamanne | 0.6.20 |
| GitHub Codespaces | github.codespaces | GitHub | 1.18.16 |
| Spreadsheet Viewer | grapecity.gc-excelviewer | GrapeCity | 4.2.66 |
| Todo Tree | gruntfuggly.todo-tree | Gruntfuggly | 0.0.226 |
| Rainbow CSV | mechatroner.rainbow-csv | mechatroner | 3.24.1 |
| Container Tools | ms-azuretools.vscode-containers | ms-azuretools | 2.5.3 |
| Docker | ms-azuretools.vscode-docker | ms-azuretools | 2.0.0 |
| C# Dev Kit | ms-dotnettools.csdevkit | ms-dotnettools | 3.40.215 |
| C# | ms-dotnettools.csharp | ms-dotnettools | 2.160.4 |
| .NET Install Tool | ms-dotnettools.vscode-dotnet-runtime | ms-dotnettools | 3.2.0 |
| Black Formatter | ms-python.black-formatter | ms-python | 2026.6.0 |
| Python Debugger | ms-python.debugpy | ms-python | 2026.6.0 |
| isort | ms-python.isort | ms-python | 2026.6.0 |
| Mypy Type Checker | ms-python.mypy-type-checker | ms-python | 2026.6.0 |
| Python | ms-python.python | ms-python | 2026.10.0 |
| Pylance | ms-python.vscode-pylance | ms-python | 2026.4.1 |
| Python Environments | ms-python.vscode-python-envs | ms-python | 1.40.0 |
| Jupyter | ms-toolsai.jupyter | ms-toolsai | 2025.9.1 |
| Jupyter Keymap | ms-toolsai.jupyter-keymap | ms-toolsai | 1.1.2 |
| Jupyter Notebook Renderers | ms-toolsai.jupyter-renderers | ms-toolsai | 1.3.0 |
| Jupyter Cell Tags | ms-toolsai.vscode-jupyter-cell-tags | ms-toolsai | 0.1.9 |
| Jupyter Slide Show | ms-toolsai.vscode-jupyter-slideshow | ms-toolsai | 0.1.6 |
| Dev Containers | ms-vscode-remote.remote-containers | ms-vscode-remote | 0.469.0 |
| WSL | ms-vscode-remote.remote-wsl | ms-vscode-remote | 1.104.6 |
| PowerShell | ms-vscode.powershell | ms-vscode | 2025.4.0 |
| Codex Audio | openai.codex-audio | openai | 26.1021.22027 |
| vscode-pdf | tomoki1207.pdf | tomoki1207 | 1.2.2 |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
c9b86496:31447327
control_6dc23131:31590236
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
2d1bi976:31596492
i2gc6536:31499202
52612955:31516516
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
b5d32f0b:31595862
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
ahp-both-windows:31556933
ihg5j128:31534457
9gg7f176:31542112
enable_editor_pane_layout:31569726
allow-none:31555437
36h42362:31564511
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
switchtoauto:31559321
0c1h4866:31566224
session-mark-done:31591648
plus-and-new:31602494
multi-root:31593626
5b8j3302:31564601
autotiers:31584978
mangle-name-treatment:31572634
atk_rai_validation_enable:31598258
allow-signed-out:31592042
survey_only_v2:31595653
b17abb00-cfec-4134-90da-ee5e32ce4426:31602001
intellij_nes_preview_t:31580086
multiv2:31574985
links-treatment:31596176
aw-autom-on:31583758
issue9151-7215f35b:31597540
usage_tips_endabled_0911:31587631
7g328426_fixed:31595622
codex-agent-host-stable-editor:31599810
54hd3363:31600021
skill-budget-30000:31597277
sessioninlinediffenabled_disabled:31587634
welcomesignin9359t:31602106
e6882f69-f5cc-4f90-9073-69a4ca3e50ea:31602109
d6a5dc66-a24d-4215-bf31-317b28ac768a:31603712
ee75ae2a-d344-4855-a1a7-ebec120dec2d:31601709
5a177259:31599157
i67i8290:31599156
edbgf432:31599155
316327db:31605431
msft-auth-on:31593345
codex-continuation-control:31605233
variation2-current-feedback:31600291
search-axe:1470751
permission_prompt_control:1332567
ccr_pr_nudge_auto_review:1467214
vsc_wsm_c:1340633
1g5a5742:1379227
jc553158:1433349
hdfaf120:1469184
cmc_aa_c:1435710
c_ws_f8jhi663:1455089
2ca6g807:1469189
seatcta-e16b2a98:1462478
st_t_a_hibg2293:1460019
ctid-aa-t:1469309
Activity
ForrestTrepte commentedon Oct 25, 2026
Full disclosure: Claude Code helped me write this bug report. But it is based on an actual problem I personally had where I was trying to configure a Codespace with a small locked-down set of development dependencies. I wasn't able to do so and I needed Claude Code's help to diagnose what was going wrong.
ForrestTrepte commentedon Oct 25, 2026
In case it helps, here is my recent extensions.json based on the Sync Activity pane from before I disabled sync for Extensions:
extensions.json