-
Notifications
You must be signed in to change notification settings - Fork 215
consume new ea #11723
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
consume new ea #11723
Conversation
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.
Looks good to me. Do we expect an image load regression with this change? If so, have we reached out for a permanent exception?
This will be a regression but we only need a temporary exception. This helps get rid of the |
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.
Guessing this is waiting on a Roslyn insertion merge, right? Me too! Saves me updating my PRs at least :D
This will be a dual insertion, just had to wait for the EA packages to be published. |
The RoslynLanguageServer in the latest Microsoft.CodeAnalysis.LanguageServer.Protocol.dll doesn't exit gracefully when the JsonRpc it's listening to is forcibly disconnected. Unfortunately, that's exactly how our CSharpTestLspServer shuts down the RoslynLanguageServer that it creates. Ultimately, the Razor EA should be updated to provide a IAsyncDisposable implementation that can be called to gracefully shut down the language server. However, in the meantime, this change uses reflection to get at the underlying RoslynLanguageServer and call ShutdownAsync and ExitAsync on it before disposing the server-side JsonRpc.
Fix CSharpTestLspServer disposal to gracefully shutdown RoslynLanguageServer
This reverts commit ac21bbe.
Requires dotnet/roslyn#78069