dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.88k stars 676 forks source link

Some Small inconsistency with Code Coloring #4967

Open abdollahkahne opened 2 years ago

abdollahkahne commented 2 years ago

Issue Description

image Its color is not OK!

Steps to Reproduce

create a Razor Component in Blazor wasm and then you see it in @code section

Expected Behavior

Consistent colors

Actual Behavior

Non Cobsitent Colors

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.63.2 C# Extension: 1.23.17

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.101 Commit: ef49f6213a Runtime Environment: OS Name: ubuntu OS Version: 20.04 OS Platform: Linux RID: ubuntu.20.04-x64 Base Path: /usr/share/dotnet/sdk/6.0.101/ Host (useful for support): Version: 6.0.1 Commit: 3a25a7f1cc .NET SDKs installed: 5.0.404 [/usr/share/dotnet/sdk] 6.0.101 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions |Extension|Author|Version| |---|---|---| |blazorwasm-companion|ms-dotnettools|1.1.0| |csharp|ms-dotnettools|1.23.17| |csharpextensions|kreativ-software|1.5.3| |docomment|k--kato|0.1.30| |html-css-class-completion|Zignd|1.20.0| |ilspy-vscode|icsharpcode|0.13.1| |live-server|ms-vscode|0.2.11| |prettier-vscode|esbenp|9.0.0| |sharppad|jmazouri|1.1.0| |vscode-css-modules|clinyong|0.4.1| |vscode-dotnet-runtime|ms-dotnettools|1.5.0| |vscode-duplicate|mrmlnc|1.2.1| |vscode-eslint|dbaeumer|2.2.2| |vscode-resx-editor|DominicVonk|0.0.5| |vscode-styled-components|jpoissonnier|1.7.0| |vscode-tailwindcss|bradlc|0.7.4|;
abdollahkahne commented 2 years ago

More information: Apparently this only happen when we used nullable (?) string/objects. This is only to report. of course you could close it if this is not important for now.