microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.28k stars 28.09k forks source link

Git diff decorations not showing in editor or Explorer #213857

Open vncnth opened 1 month ago

vncnth commented 1 month ago

Type: Bug

Hi, I recently noticed that my editor and Explorer no longer show any Git decorations (i.e. the blue and green lines in the editor, "U" and "M" in the Explorer), even though Source Control detects changes and will show the diff.

I've tried uninstalling and reinstalling, as well as reinstalling a previous version of VS Code, to no avail.

Interestingly, I've noticed that the colors don't show when I open my file through my workspace in VS Code...

not working

...but they do when I open the same file directly from Windows Explorer by dragging and dropping it into the VS Code editor section:

working

Can someone help me please?

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.71GB (2.16GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (11) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.5.0 gitlens|eam|15.0.4 rainbow-csv|mec|3.12.0 vscode-dotnet-runtime|ms-|2.0.5 mssql|ms-|1.22.1 debugpy|ms-|2024.6.0 python|ms-|2024.6.0 vscode-pylance|ms-|2024.5.1 jupyter|ms-|2024.4.0 oracledevtools|Ora|21.9.0 sas-lsp|SAS|1.9.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 chatpanelc:31048052 dsvsc021:30996838 0ee40948:31013168 a69g1124:31058053 dvdeprecation:31061160 pythonprt:31056678 dwnewjupytercf:31046870 26j00206:31048877 ```
lszomoru commented 1 month ago

@vncnth, are you able to reproduce the issue with the latest VS Code Insiders release (v1.90)? Thanks!

vncnth commented 1 month ago

Hi @lszomoru, thanks for responding so quickly. Yes, I get the same issue with the latest VS Code Insiders release.

I hadn't included a screenshot of the Source Control / Explorer issue in my initial post so here it is - Source Control shows the files that have diffs, but the green/yellow highlights in the Explorer don't appear:

image

Thinking back, I noticed that this issue first started after my VS Code auto-updated a few releases back and I received this prompt for the first time:

image

I had clicked either "Yes" or "Always" and that's when this issue started happening.

Interestingly, when I look this setting up, it's set to "prompt," but I don't receive a prompt each time I open my workspace. Maybe something is wrong with how this setting functions?

image

vncnth commented 3 weeks ago

Hi @lszomoru, I unintentionally closed this, but reopened it as it's still an issue. Do you have any updates?