Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--helix-term/src/commands/lsp.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs
index a85aef7f..929774c7 100644
--- a/helix-term/src/commands/lsp.rs
+++ b/helix-term/src/commands/lsp.rs
@@ -935,7 +935,13 @@ where
}
let call = move |editor: &mut Editor, compositor: &mut Compositor| {
if locations.is_empty() {
- editor.set_error("No definition found.");
+ editor.set_error(match feature {
+ LanguageServerFeature::GotoDeclaration => "No declaration found.",
+ LanguageServerFeature::GotoDefinition => "No definition found.",
+ LanguageServerFeature::GotoTypeDefinition => "No type definition found.",
+ LanguageServerFeature::GotoImplementation => "No implementation found.",
+ _ => "No location found.",
+ });
} else {
goto_impl(editor, compositor, locations);
}