Microsoft/vscode

Git - wrong handling of .gitignore that contains the folder name

Open

#226.136 aperta il 21 ago 2024

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

Metriche repository

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

Descrizione

Type: Bug

if I create a folder named test and inside have test/.gitignore file that has the entry test , then vscode ignores the entire folder, while he should only ignore a file named test/test

VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 4.4.0-210-generic

Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-1235U (12 x 2496)
GPU Status 2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off
Load (avg) undefined
Memory (System) 15.73GB (6.01GB free)
Process Argv --crash-reporter-id 39b50b30-0b69-4d2a-85a9-0dd4641e19df
Screen Reader no
VM 0%
Item Value
Remote SSH: xangrila-hub-linux
OS Linux x64 4.4.0-210-generic
CPUs Common KVM processor (16 x 0)
Memory (System) 62.92GB (28.72GB free)
VM 0%
Extension Author (truncated) Version
Bookmarks ale 13.5.0
remote-ssh ms- 0.113.1
remote-ssh-edit ms- 0.86.0
remote-explorer ms- 0.4.3
gitlens eam 15.3.0
vscode-docker ms- 1.29.2
debugpy ms- 2024.10.0
python ms- 2024.12.3
vscode-pylance ms- 2024.8.1
cpptools ms- 1.21.6
cpptools-extension-pack ms- 1.3.0
ocaml-platform oca 1.20.0
markdown-all-in-one yzh 3.6.2

(1 theme extensions excluded)

vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
01bff139:31013167
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31104044
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31119336
wkspc-onlycs-c:31111717
wkspc-ranged-t:31118572
fje88620:31121564

Guida contributor