microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
192 stars 6 forks source link

[BUG] Razor Syntax highlighting is broken in previews #1063

Open seangwright opened 4 weeks ago

seangwright commented 4 weeks ago

Describe the Issue

Razor syntax highlighting appears to be broken in the latest previews.

I installed the preview versions of C# Dev Kit and C# extensions, reloaded VS Code and opened a Razor file:

image

Specifically these statements/expressions:

Using the stable versions doesn't cause these highlighting issues.

Steps To Reproduce

  1. Install the latest previews of the C# and C# DevKit extensions
  2. Open a Razor file (they all appear to have issues)

Expected Behavior

Razor syntax highlighting works correctly for any valid Razor code.

Environment Information

Editor

Extensions

phil-allen-msft commented 1 week ago

@seangwright , the most recent pre-release is now 2.28.8. Are you seeing the same issue with your razor files?

seangwright commented 1 week ago

@phil-allen-msft I am using the following version and still have the issue

C# DevKit: v1.6.2 (pre-release) C#: v2.29.11 (pre-release)

image