diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-01 19:57:55 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-01 19:57:55 +0100 |
commit | 26079c7f2cce4cd1a2e833a045fb14377fa737d3 (patch) | |
tree | 07da881c1daeb65ea8e8683c367acc56e23cf322 /crates/ra_hir_def/src | |
parent | 4d33cdcfb2e06088c8bccc57565224f8a377d899 (diff) | |
parent | 99826dab153feffc8fe0d80600d9e812824d67b2 (diff) |
Merge #4167
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]>
Diffstat (limited to 'crates/ra_hir_def/src')
0 files changed, 0 insertions, 0 deletions