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

Don't kill all code actions when a delegated server misbehaves #8214

Merged
merged 2 commits into from
Feb 5, 2023

Conversation

davidwengier
Copy link
Contributor

Follow up to #8207

That PR fixes the issue, this PR makes us resiliant to downstream servers throwing exceptions getting code actions in general (and adds ConfigureAwait calls because there were a few missing)

@davidwengier davidwengier requested a review from a team as a code owner February 3, 2023 01:16
}
catch (RemoteInvocationException e)
{
logger.LogException(e, "Error getting code actions from delegate language server for {languageKind}", languageKind);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This means we'll get a prism bug if enough of these happens, which will be good to highlight for partner teams, but won't prevent us from showing Razor code actions either

@davidwengier davidwengier merged commit 71a7cb7 into dotnet:main Feb 5, 2023
@davidwengier davidwengier deleted the CatchCodeActionsExceptions branch February 5, 2023 21:19
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.

2 participants