You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@matklad I think I wrote the following... but do you remember why we went this route instead of having an AssistKind that gets converted to a String or CodeActionKind in conv.rs?
4167: Filter out code actions if unsupported by the client and advertise our capabilities r=matklad a=kjeremy
This PR does three things:
1. If the client does not support `CodeActionKind` this will filter the results and only send `Command[]` back.
2. Correctly advertises to the client that the server supports `CodeActionKind`. This may cause clients to not request code actions if they are checking for the provider to be `true` (or implement LSP < 3.8) in the caps but I will fix that in a followup PR.
3. Marks most CodeActions as <strike>"refactor" so that they show up in the menu in vscode.</strike>`""`.
Part of #144#4147#2833
Co-authored-by: kjeremy <[email protected]>
@matklad I think I wrote the following... but do you remember why we went this route instead of having an
AssistKind
that gets converted to aString
orCodeActionKind
inconv.rs
?https://github.com/rust-analyzer/rust-analyzer/blob/45832b990c7f291abe578dff3c460f4a1232f024/crates/rust-analyzer/src/main_loop/handlers.rs#L699-L703
The text was updated successfully, but these errors were encountered: