dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 667 forks source link

not highlighting and no suggenstions on godot stuff #7491

Open ufoluv opened 2 weeks ago

ufoluv commented 2 weeks ago

Type: Bug

i have any godot script c# open in vscode, and if the c# extension is off, "using Godot" and "using System" are highlighted, and you get autofill for godot syntax, otherwise its not working. image this is what i see as soon as i start the editor / or before enabling c# or c#dev kit extension, either one of those.

and this is what i see couple of second later: image

obviously auto-suggestions dont work for godot related things, i guess this is because of intellisense, (if i switch to omnisharp and disable c# and c# devkit, the syntax will be highlighted however the suggestions will still not work)

Extension version: 2.39.29 VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 7845HX with Radeon Graphics (24 x 2994)| |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
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|15.21GB (8.88GB free)| |Process Argv|--crash-reporter-id 1faf465a-8bf4-42fd-af73-29e808ca403b| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 da93g388:31013173 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 2f103344:31071589 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-c:31111717 wkspc-ranged-c:31125598 ei213698:31121563 aajjf12562:31125793 ```
dibarbet commented 2 weeks ago

@ufoluv The first screenshot is what you'll get from textmate (with limited, syntax only coloring). The second screenshot is what I'd expect to see while the project is loading (everything is missing type information, so we're unable to color it properly).

It should however refresh once the project finishes loading (sometimes have to scroll the window). If it never refreshes (and completion does not work), it is likely that the project failed to load for some reason.

Can you, with C# DevKit installed,

  1. Check that there is a solution loaded in the solution explorer: image
  2. If there is a solution loaded, set dotnet.server.trace to Trace, reload the window and attach the 'C#' output window logs and 'Projects' output window logs?

Thanks!