Skip to content

Razor grammar missing some token/scopes and causing theme weirdness #8363

Open
@timheuer

Description

@timheuer

@maddymontaquila cloned issue microsoft/vscode-dotnettools#2078 on 2025-06-10:

Describe the Issue

Image

The lambda is showing up as red with an underline, but it is working fine, and there are no errors in the Problems window or when I hover over it. Lightbulb just suggests "Wrap attribute"

Steps To Reproduce

Using an internal codebase - can share offline

Expected Behavior

No response

Environment Information

MacOS
Insiders VS Code
Previews of devkit (1.30.4) + C# (2.81.17)

Razor "Force Runtime Code Generation" "Use New Formatting Engine" are both turned on

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions