Minor
This commit is contained in:
parent
fc0c5dfcd1
commit
acedad8134
1 changed files with 8 additions and 10 deletions
|
|
@ -164,16 +164,6 @@ pub(crate) fn completion_item(
|
|||
additional_text_edits: Some(additional_text_edits),
|
||||
documentation: completion_item.documentation().map(documentation),
|
||||
deprecated: Some(completion_item.deprecated()),
|
||||
command: if completion_item.trigger_call_info() {
|
||||
let cmd = lsp_types::Command {
|
||||
title: "triggerParameterHints".into(),
|
||||
command: "editor.action.triggerParameterHints".into(),
|
||||
arguments: None,
|
||||
};
|
||||
Some(cmd)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
|
@ -187,6 +177,14 @@ pub(crate) fn completion_item(
|
|||
res.tags = Some(vec![lsp_types::CompletionItemTag::Deprecated])
|
||||
}
|
||||
|
||||
if completion_item.trigger_call_info() {
|
||||
res.command = Some(lsp_types::Command {
|
||||
title: "triggerParameterHints".into(),
|
||||
command: "editor.action.triggerParameterHints".into(),
|
||||
arguments: None,
|
||||
});
|
||||
}
|
||||
|
||||
res.insert_text_format = Some(insert_text_format(completion_item.insert_text_format()));
|
||||
|
||||
res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue