|
|
@ -118,8 +118,7 @@ pub fn request_signature_help(
|
|
|
|
// Do not show the message if signature help was invoked
|
|
|
|
// Do not show the message if signature help was invoked
|
|
|
|
// automatically on backspace, trigger characters, etc.
|
|
|
|
// automatically on backspace, trigger characters, etc.
|
|
|
|
if invoked == SignatureHelpInvoked::Manual {
|
|
|
|
if invoked == SignatureHelpInvoked::Manual {
|
|
|
|
editor
|
|
|
|
editor.set_error("No configured language server supports signature-help");
|
|
|
|
.set_error("No configured language server supports signature-help");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -264,11 +263,11 @@ fn signature_help_post_insert_char_hook(
|
|
|
|
let (view, doc) = current!(cx.editor);
|
|
|
|
let (view, doc) = current!(cx.editor);
|
|
|
|
// TODO support multiple language servers (not just the first that is found), likely by merging UI somehow
|
|
|
|
// TODO support multiple language servers (not just the first that is found), likely by merging UI somehow
|
|
|
|
let Some(language_server) = doc
|
|
|
|
let Some(language_server) = doc
|
|
|
|
.language_servers_with_feature(LanguageServerFeature::SignatureHelp)
|
|
|
|
.language_servers_with_feature(LanguageServerFeature::SignatureHelp)
|
|
|
|
.next()
|
|
|
|
.next()
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
return Ok(());
|
|
|
|
return Ok(());
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let capabilities = language_server.capabilities();
|
|
|
|
let capabilities = language_server.capabilities();
|
|
|
|
|
|
|
|
|
|
|
|