Microsoft/vscode

Git - The `git submodule deinit` command is not reflected in the GUI

Open

#168.662 aperta il 9 dic 2022

Vedi su GitHub
 (0 commenti) (2 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
buggithelp wantedpolish

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

Type: Bug

Take any repository parent with two submodules sub1 (path: dir1/sub1) and sub2(path:dir2/sub2).

When first cloning this repository, the SOURCE CONTROL REPOSITORIES in VS Code will only show parent (as expected):

image

Now activate both submodules in the built-in terminal:

git submodule init
git submodule update

The SOURCE CONTROL REPOSITORIES react correctly by adding the submodules in the GUI:

image

Now deactivate one or both submodules in the built-in terminal (use the path for your respective submodules):

git submodule deinit dir1/sub1

The command will clear the directory, and remove the entry from the main .git/config file. But the VS Code GUI doesn't reflect this change, both submodules are still present!

I've tried the Refresh icons, but they don't affect the outcome. I have to Developer: Reload Windowfor the change to be reflected:

image

VS Code version: Code 1.74.0 (5235c6bb189b60b01b1f49062f4ffa42384f8c91, 2022-12-05T16:38:16.075Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Remote OS version: Linux x64 4.4.0-19041-Microsoft

Item Value
CPUs Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off
Load (avg) undefined
Memory (System) 23.72GB (11.01GB free)
Process Argv --crash-reporter-id 7f8984d8-a3de-4835-8e4b-0bf20a65d933
Screen Reader no
VM 67%
Item Value
Remote WSL: Ubuntu-20.04
OS Linux x64 4.4.0-19041-Microsoft
CPUs Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)
Memory (System) 23.72GB (11.01GB free)
VM 67%
Extension Author (truncated) Version
Bookmarks ale 13.3.1
remotehub Git 0.48.0
better-cpp-syntax jef 1.16.3
jupyter-keymap ms- 1.0.0
remote-containers ms- 0.266.1
remote-ssh ms- 0.94.0
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.72.0
azure-repos ms- 0.24.0
remote-explorer ms- 0.0.3
remote-repositories ms- 0.26.0
vscode-icons vsc 12.0.1
vscode-markdownlint Dav 0.48.1
shell-format fox 7.2.2
bash-ide-vscode mad 1.21.0
git-graph mhu 1.30.0
isort ms- 2022.8.0
python ms- 2022.20.0
vscode-pylance ms- 2022.12.20
jupyter ms- 2022.11.1003412109
jupyter-renderers ms- 1.0.12
vscode-jupyter-cell-tags ms- 0.1.6
vscode-jupyter-slideshow ms- 0.1.5
vscode-xml red 0.22.0
perl ric 2.4.0
bash-debug rog 0.3.9
perlcritic sfo 1.3.8
markdown-preview-enhanced shd 0.6.5
code-spell-checker str 2.12.0
shellcheck tim 0.29.1
markdown-all-in-one yzh 3.5.0
simple-perl zhi 0.0.4

(2 theme extensions excluded)

vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyonecf:30548226
vsccc:30610678
pyindex848:30577860
nodejswelcome1cf:30587006
282f8724:30602487
gswce1:30612156
3d0df643:30613357
dbltrim-noruby:30604474
89544117:30613380
fim-prod:30623723
vscsbc:30625889

Guida contributor