Skip to content

Add LSP support for .razor and .cshtml file extensions#644

Open
davidwengier wants to merge 1 commit into
dotnet:mainfrom
davidwengier:patch-1
Open

Add LSP support for .razor and .cshtml file extensions#644
davidwengier wants to merge 1 commit into
dotnet:mainfrom
davidwengier:patch-1

Conversation

@davidwengier
Copy link
Copy Markdown
Member

@davidwengier davidwengier commented May 13, 2026

The roslyn-language-server package includes the Razor LSP bits now.

Fixes dotnet/razor#13140

Package that adds this support is: https://www.nuget.org/packages/roslyn-language-server/5.8.0-1.26262.10

The roslyn-language-server package includes the Razor LSP bits now
@davidwengier davidwengier marked this pull request as ready for review May 14, 2026 00:39
@davidwengier davidwengier requested a review from a team as a code owner May 14, 2026 00:39
Copilot AI review requested due to automatic review settings May 14, 2026 00:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Razor file extension mappings to the .NET plugin’s LSP configuration so Razor-related files can be handled by the Roslyn language server package that now includes Razor LSP support (per linked Razor issue).

Changes:

  • Map .razor files to the Razor language ID for LSP routing.
  • Map .cshtml files to the Razor language ID for LSP routing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ship Razor as part of Roslyn LSP

3 participants