-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Conversation
[ExportCSharpVisualBasicLspServiceFactory(typeof(OnInitialized)), Shared] | ||
[method: ImportingConstructor] | ||
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] | ||
internal sealed class DynamicDocumentSyncRegistration() : ILspServiceFactory |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
...Microsoft.CodeAnalysis.LanguageServer/LanguageServer/RazorDynamicDocumentSyncRegistration.cs
Outdated
Show resolved
Hide resolved
…ver/LanguageServer/RazorDynamicDocumentSyncRegistration.cs Co-authored-by: David Barbet <[email protected]>
No description provided.