microsoft / vscode

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

Text coloring and references #228383

Closed jostromhaug closed 2 months ago

jostromhaug commented 2 months ago

Type: Bug

A few times a day, VS Code will drop the green coloring for C# types and refuses to display descriptions and links to class definitions. I sometimes have to restart VS Code multiple times in order to fix this problem. Some times it seems to fix on it's own.

VS Code version: Code 1.93.0 (Universal) (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Darwin arm64 23.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 2400)| |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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|3, 5, 4| |Memory (System)|32.00GB (0.43GB free)| |Process Argv|--crash-reporter-id 830be446-516c-4243-ae34-6d50892e1074| |Screen Reader|no| |VM|0%|
Extensions (28) Extension|Author (truncated)|Version ---|---|--- alpine-js-intellisense|adr|1.2.0 laravel-extra-intellisense|ami|0.6.6 vscode-intelephense-client|bme|1.12.6 vscode-tailwindcss|bra|0.12.10 prettier-vscode-standard|bys|0.22.1 livewire-vscode|cie|0.2.8 vscode-eslint|dba|3.0.10 gitlens|eam|15.4.0 tall-stack|ent|1.0.9 prettier-vscode|esb|11.0.0 copilot|Git|1.229.0 copilot-chat|Git|0.20.0 vscode-docker|ms-|1.29.2 csdevkit|ms-|1.10.18 csharp|ms-|2.45.20 vscode-dotnet-runtime|ms-|2.1.5 debugpy|ms-|2024.10.0 python|ms-|2024.14.1 vscode-pylance|ms-|2024.9.1 remote-containers|ms-|0.384.0 live-server|ms-|0.4.14 powershell|ms-|2024.2.2 vscode-speech|ms-|0.10.0 vscode-nuget-gallery|pat|1.2.1 vscode-phpcbf|per|0.0.8 vs-code-prettier-eslint|rve|6.0.0 vscode-coverage-gutters|rya|2.11.1 laravel-artisan|rya|0.0.31
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 724cj586:31013169 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flightc:31134773 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 autoexpandse:31133494 fje88620:31121564 ```
vs-code-engineering[bot] commented 2 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.93.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

aeschli commented 2 months ago

It's the C+ extension that provides the semantic highlighting for types based on the project information. Likely extension has troubles to resolve or crashes.

To investigate further the issue needs to be filed against https://github.com/dotnet/vscode-csharp/issues, ideally with sample code ans steps to reproduce.