Make sure there are no commands in code actions

This commit is contained in:
Aleksey Kladov 2020-07-11 11:46:31 +02:00
parent 0366a85052
commit 0f0c5081c0
8 changed files with 3 additions and 9 deletions

View file

@ -118,7 +118,6 @@ fn map_rust_child_diagnostic(
changes: Some(edit_map),
document_changes: None,
}),
command: None,
})
}
}

View file

@ -762,7 +762,6 @@ fn handle_fixes(
group: None,
kind: Some(lsp_types::code_action_kind::QUICKFIX.into()),
edit: Some(edit),
command: None,
};
res.push(action);
}

View file

@ -249,8 +249,9 @@ pub struct CodeAction {
pub group: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub command: Option<lsp_types::Command>,
// We don't handle commands on the client-side
// #[serde(skip_serializing_if = "Option::is_none")]
// pub command: Option<lsp_types::Command>,
#[serde(skip_serializing_if = "Option::is_none")]
pub edit: Option<SnippetWorkspaceEdit>,
}

View file

@ -651,7 +651,6 @@ pub(crate) fn unresolved_code_action(
group: assist.group.filter(|_| snap.config.client_caps.code_action_group).map(|gr| gr.0),
kind: Some(code_action_kind(assist.id.1)),
edit: None,
command: None,
};
Ok(res)
}

View file

@ -39,7 +39,6 @@
kind: Some(
"quickfix",
),
command: None,
edit: Some(
SnippetWorkspaceEdit {
changes: Some(

View file

@ -39,7 +39,6 @@
kind: Some(
"quickfix",
),
command: None,
edit: Some(
SnippetWorkspaceEdit {
changes: Some(

View file

@ -39,7 +39,6 @@
kind: Some(
"quickfix",
),
command: None,
edit: Some(
SnippetWorkspaceEdit {
changes: Some(

View file

@ -54,7 +54,6 @@
kind: Some(
"quickfix",
),
command: None,
edit: Some(
SnippetWorkspaceEdit {
changes: Some(