Source Control does not show repository when worktree folder is opened
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
### Description
Create a git worktree for a repo using command line. Open the worktree folder in VS Code Insiders. The Source Control pane says that it does not have Git repository.
### Issue Details
Item|Value
---|---
Issue Category|Bug
Target|Visual Studio Code - Insiders
VS Code Version|Code - Insiders 1.136.0-insider (6b83849594a181ba0dcadea99844b6f1f42bbcc9, 2026-09-01T09:39:18Z)
OS Version|Windows_NT arm64 10.0.28000
System Info
Item|Value
---|---
VS Code Version|Code - Insiders 1.136.0-insider (6b83849594a181ba0dcadea99844b6f1f42bbcc9, 2026-09-01T09:39:18Z)
OS Version|Windows_NT arm64 10.0.28000
CPUs|NVIDIA RTX Spark N1X (5120-core GPU, 18-core CPU) (18 x 2806)
GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x2e06 [NVIDIA RTX Spark N1X (5120-core Blackwell RTX GPU)], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.16.1662 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.28000.2804
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)|
Memory (System)|22.33GB (3.44GB free)
Process Argv|--crash-reporter-id 40d5c424-0621-415e-be9a-74e81f63f8e5
Screen Reader|no
VM|0%
User Agent|Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Code-Insiders/1.136.0-insider Chrome/148.0.7778.280 Electron/42.10.0 Safari/537.36
Installation pure|true
Extensions (29)
Name|Identifier|Author|Version
---|---|---|---
OpenAPI (Swagger) Editor|42crunch.vscode-openapi|42Crunch|5.8.0
CSS Formatter|aeschli.vscode-css-formatter|aeschli|1.0.2
Angular Language Service|angular.ng-template|Angular|22.1.0
Azurite|azurite.azurite|Azurite|3.37.0
npm Intellisense|christian-kohler.npm-intellisense|christian-kohler|1.4.5
markdownlint|davidanson.vscode-markdownlint|DavidAnson|0.62.1
ESLint|dbaeumer.vscode-eslint|dbaeumer|3.0.34
EditorConfig|editorconfig.editorconfig|EditorConfig|0.18.2
Prettier - Code formatter|esbenp.prettier-vscode|esbenp|12.4.0
REST Client|humao.rest-client|humao|0.25.1
Edit CSV|janisdd.vscode-edit-csv|janisdd|0.11.9
JSON to CSV|khaeransori.json2csv|khaeransori|1.0.1
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
Bicep|ms-azuretools.vscode-bicep|ms-azuretools|0.46.1
C#|ms-dotnettools.csharp|ms-dotnettools|2.140.9
.NET Install Tool|ms-dotnettools.vscode-dotnet-runtime|ms-dotnettools|3.1.0
Microsoft Edge Tools for VS Code|ms-edgedevtools.vscode-edge-devtools|ms-edgedevtools|2.1.10
Playwright Test for VSCode|ms-playwright.playwright|ms-playwright|1.1.19
Python Debugger|ms-python.debugpy|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
Python Environments|ms-python.vscode-python-envs|ms-python|1.36.0
SARIF Viewer|ms-sarifvscode.sarif-viewer|MS-SarifVSCode|3.4.5
PowerShell|ms-vscode.powershell|ms-vscode|2026.1.2
Live Share|ms-vsliveshare.vsliveshare|ms-vsliveshare|1.1.122
Paste Image|mushan.vscode-paste-image|mushan|1.0.4
YAML|redhat.vscode-yaml|redhat|1.24.0
[Kuskus] Kusto Language Server|rosshamish.kuskus-kusto-language-server|rosshamish|3.4.3
[Kuskus] Kusto Syntax Highlighting|rosshamish.kuskus-kusto-syntax-highlighting|rosshamish|2.0.8
Theme extensions: 9
A/B Experiments
```
vsliv368:30146709
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
839jf696:31457053
ddidtcf:31398485
cmp-cht-diffpatch-3in1-lysithea-0024-10x-gkv:31575024
metis_rerank_treatment1:31411021
cp_cls_t_966_ss:31526232
4je02754:31455664
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490507
cp_cls_c_1081:31454833
conptydll_true:31485575
e9c30283:31453065
c9b86496:31447327
ei9d7968:31462942
nes-extended-on:31455475
f860i809:31458078
89g7j272:31506658
hhf17803:31462392
i2gc6536:31472020
52612955:31508042
h08i8180:31475367
ec1eg703:31520046
ddid_t:31478204
hmra_i5g22:-9
bjc72774_agent_sandbox:31538428
7df3h592:31491241
cp_cls_t_1082:31535311
logging_enabled_new:31490725
jb_cp_cls_t_632:31543129
b1g4i769:31503653
ha629193:31508444
a1ije391_t:31533808
jbcp_cls_pctr_t:31531130
3f904173:31522231
cp_intellij_t_nes:31548657
jf4hg949:31526829
hide-eh-duplicates:31543293
replace-eh-with-ah:31545853
ihg5j128:31534457
f412h606:31543414
enable_editor_pane_layout:31551200
52258b4d:31547953
36h42362:31560305
c7c27ce7:31551212
voicemodeon:31566386
6577i413_copy:31558653
1h923230:31564177
0dg73464:31554309
sol_fast:31574408
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0c1h4866:31562347
vrbsty_tr:31561056
plus-and-new:31566205
5b8j3302:31564600
autotiers:31569067
mangle-name-treatment:31568054
allow-signed-out:31574470
codex-agent-enabled:31566739
77cef475:31568526
64a8d082:31573709
issue8950-5d26a188:31574957
39a5d156:31574988
ae8b2313:-9
2bfb8b39:31576696
permission_prompt_treatment:1294978
ccr_pr_nudge_adoption:1319471
vsc_wsm_t:1324223
jidc7660:1370295
auto_mode_control:1367906
g03gg798:1367874
```
### Attachments

Contributor guide
Assessment
This issue has not been assessed yet.