diff options
author | Kirill Bulatov <[email protected]> | 2021-05-03 20:58:53 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-05-03 21:24:36 +0100 |
commit | 734b95a1ac9a65cec45d8f9024d53638e6a3cd2e (patch) | |
tree | d83781f8de23f3183a943c7771ca86f157e20927 /crates/rust-analyzer/src/to_proto.rs | |
parent | 90fc32937785b3f17899f14d8cb2f7b3738a9850 (diff) |
Code review fixes
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 62e16680b..1d27aa7b3 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -897,10 +897,8 @@ pub(crate) fn code_action( | |||
897 | (Some(it), _) => res.edit = Some(snippet_workspace_edit(snap, it)?), | 897 | (Some(it), _) => res.edit = Some(snippet_workspace_edit(snap, it)?), |
898 | (None, Some((index, code_action_params))) => { | 898 | (None, Some((index, code_action_params))) => { |
899 | res.data = Some(lsp_ext::CodeActionData { | 899 | res.data = Some(lsp_ext::CodeActionData { |
900 | id: assist.id.0.to_string(), | 900 | id: format!("{}:{}:{}", assist.id.0, assist.id.1.name(), index), |
901 | code_action_params, | 901 | code_action_params, |
902 | kind: assist.id.1.name().to_string(), | ||
903 | index, | ||
904 | }); | 902 | }); |
905 | } | 903 | } |
906 | (None, None) => { | 904 | (None, None) => { |