mirror of https://github.com/helix-editor/helix
Fix error messages when no language server is available
Co-authored-by: Skyler Hawthorne <skyler@dead10ck.com>pull/2507/head
parent
19f88fc577
commit
dd2f74794a
|
@ -1130,7 +1130,7 @@ pub fn goto_implementation(cx: &mut Context) {
|
||||||
Some(future_offset_encoding) => future_offset_encoding,
|
Some(future_offset_encoding) => future_offset_encoding,
|
||||||
None => {
|
None => {
|
||||||
cx.editor
|
cx.editor
|
||||||
.set_error("no language server supports goto-implementation");
|
.set_error("No language server supports goto-implementation");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1164,7 +1164,7 @@ pub fn goto_reference(cx: &mut Context) {
|
||||||
Some(future_offset_encoding) => future_offset_encoding,
|
Some(future_offset_encoding) => future_offset_encoding,
|
||||||
None => {
|
None => {
|
||||||
cx.editor
|
cx.editor
|
||||||
.set_error("language server supports goto-reference");
|
.set_error("No language server supports goto-reference");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -48,7 +48,7 @@ use helix_core::{
|
||||||
};
|
};
|
||||||
use helix_core::{Position, Selection};
|
use helix_core::{Position, Selection};
|
||||||
use helix_dap as dap;
|
use helix_dap as dap;
|
||||||
use helix_lsp::{lsp, OffsetEncoding};
|
use helix_lsp::lsp;
|
||||||
|
|
||||||
use serde::{ser::SerializeMap, Deserialize, Deserializer, Serialize, Serializer};
|
use serde::{ser::SerializeMap, Deserialize, Deserializer, Serialize, Serializer};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue