Closed tn-5 closed 1 year ago
I've had to turn off the new Language Services because this has made my tooling completely unusable. I was having to code blind and see if there were errors via build which is no fun.
This project builds successfully but the razor tools break at the ?
on line 19:
@JoeRobich does O#'s C# grammar support this in VSCode?
No the C# textmate grammar is still quite a bit behind. We would recommend enabling Semantic Highlighting.
@tn-5 Could you open an issue against https://github.com/dotnet/csharp-tmLanguage?
Good. I also noticed this recently. I think the nullable feature needs some more love in the toolchain if it is gonna be widely adopted.
I also have this issue :(
I am also having this issue as well.
A note since it seems to have been lost, the issue was filed against csharp-tmLanguage as https://github.com/dotnet/csharp-tmLanguage/issues/191.
As soon as a property is declared that is of a nullable type, i.e.
?
suffix, the syntax highlighting of the rest of the file seems to get confused.Reproduce
dotnet new blazorserver
WeatherForecast
as a class/typeAdd nullable field
string? test;
before theWeatherForecast
declarationWeatherForecast
is still correctAdd nullable property
string? test1 {get; set;}
before theWeatherForecast
declarationWeatherForecast
now reverts to generic textIt does not seem to make any difference if the setting on the project file is enabled or not.