Closed
Description
When defining a nullable property in the @code block in a razor file the syntax highlighting does not work correctly.
Details copied from: https://github.com/dotnet/aspnetcore/issues/24791
Reproduce
- Generate standard template project:
dotnet new blazorserver
- Open in VS Code
- Open FetchData.razor
- Observe syntax highlighting correctly highlights
WeatherForecast
as a class/type
Add nullable field
- Add
string? test;
before theWeatherForecast
declaration - Observe that the highlighting of
WeatherForecast
is still correct
Add nullable property
- Add
string? test1 {get; set;}
before theWeatherForecast
declaration - Observe that the highlighting of
WeatherForecast
now reverts to generic text
It does not seem to make any difference if the setting on the project file is enabled or not.
Metadata
Metadata
Assignees
Labels
No labels