Skip to content

Blazor components not colorized correctly when .razor file is first opened in VS Code #10599

Open
@danroth27

Description

@danroth27

When I open a new Blazor Web App project in VS Code with the latest C# extension bits and then open a .razor file, the component tags don't get colorized correctly. There aren't any squiggles. The components just don't have the right semantic colors. I first see the tags get recognized as HTML, then squiggles show up saying the tags aren't recognized as components, then the squiggles go away, but the component tags stay colorized as HTML. If I then edit the file, or switch to a different file, the correct semantic colorization shows up.

WindowsSandboxClient_Tm5lw86rW2

.NET: 8.0.303
VSCode: 1.91.1
C# extension: v2.38.12-g916fe8dd31 (PR build from @ryzngard)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

externalScope involves an area outside of the repovscode

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions