Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic registration for razor and cshtml files #73369

Merged
merged 4 commits into from
May 13, 2024

Conversation

ryzngard
Copy link
Contributor

@ryzngard ryzngard commented May 7, 2024

No description provided.

@ryzngard ryzngard requested a review from a team as a code owner May 7, 2024 18:36
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 7, 2024
@ryzngard ryzngard requested a review from dibarbet May 8, 2024 22:03
@ryzngard ryzngard requested a review from davidwengier May 8, 2024 22:04
[ExportCSharpVisualBasicLspServiceFactory(typeof(OnInitialized)), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal sealed class DynamicDocumentSyncRegistration() : ILspServiceFactory
Copy link
Member

Choose a reason for hiding this comment

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

I think I'd prefer this to be in the main language server project. We can check if devkit is enabled using a global option, but maybe we should just have it always be on too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you just want it next to the sync handlers?

Copy link
Member

Choose a reason for hiding this comment

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

If we put it in the protocol project, it will light up in VS. If you want that, then yes. Otherwise put it in the LanguageServer.csproj project (probably in the language server folder).

This is the devkit global option - https://github.com/dotnet/roslyn/blob/main/src/Features/LanguageServer/Protocol/LspOptionsStorage.cs#L31

@ryzngard ryzngard requested a review from dibarbet May 9, 2024 20:58
…ver/LanguageServer/RazorDynamicDocumentSyncRegistration.cs

Co-authored-by: David Barbet <[email protected]>
@ryzngard ryzngard enabled auto-merge (squash) May 9, 2024 21:54
@ryzngard ryzngard disabled auto-merge May 13, 2024 19:38
@ryzngard ryzngard merged commit d3ea419 into dotnet:main May 13, 2024
25 checks passed
@ryzngard ryzngard deleted the hr_razor_dynamicsync branch May 13, 2024 19:38
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 13, 2024
@Cosifne Cosifne modified the milestones: Next, 17.11 P2 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants