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

Switch to upstream protocol for resolving code action #6521

Merged
merged 1 commit into from Nov 10, 2020

Conversation

matklad
Copy link
Member

@matklad matklad commented Nov 10, 2020

Note that we have to maintain custom implementation on the client
side: I don't see how to marry bulitin resolve support with groups and
snippets.

Note that we have to maintain custom implementation on the client
side: I don't see how to marry bulitin resolve support with groups and
snippets.
@matklad
Copy link
Member Author

matklad commented Nov 10, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 10, 2020

@bors bors bot merged commit 5c06e82 into rust-lang:master Nov 10, 2020
if let Some(code_action) = &doc_caps.code_action {
if let Some(resolve_support) = &code_action.resolve_support {
if resolve_support.properties.iter().any(|it| it == "edit") {
self.client_caps.code_action_resolve = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a weird one but we probably need to check for data_support too (though I argue why have resolve support without data).

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.

None yet

2 participants