You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting breaks when the null conditional access operator is split, first the wrong colours are used and then this progresses to a complete lack of colour. Enabling the csharp.semanticHighlighting.enabled option corrects the highlighting issue.
Steps to Reproduce
The following example reproduces this issue:
var list = new List<string>()?
.Select(x => x).Distinct().ToArray();
foreach(var element in list)
{
switch (element)
{
case "Case One":
break;
default:
break;
}
}
return list;
Expected Behavior
Actual Behavior
Environment information
VSCode version: 1.59.1 C# Extension: 1.23.14
The text was updated successfully, but these errors were encountered:
This was recently fixed in the C# textmate grammar (dotnet/csharp-tmLanguage#216). It should flow automatically flow into VS Code for the October release. You can set csharp.semanticHighlighting.enabled to true to enable our semantic highlighting which will also resolve this issues for you.
Issue Description
Syntax highlighting breaks when the null conditional access operator is split, first the wrong colours are used and then this progresses to a complete lack of colour. Enabling the
csharp.semanticHighlighting.enabled
option corrects the highlighting issue.Steps to Reproduce
The following example reproduces this issue:
Expected Behavior
Actual Behavior
Environment information
VSCode version: 1.59.1
C# Extension: 1.23.14
The text was updated successfully, but these errors were encountered: