on master help sign in
Fix error messages when no language server is available
dd2f747Philipp Mildenberger
helix-term/src/commands/lsp.rs+2−2
@@ -1130,7 +1130,7 @@ pub fn goto_implementation(cx: &mut Context) {
1130 Some(future_offset_encoding) => future_offset_encoding,
1130 Some(future_offset_encoding) => future_offset_encoding,
1131 None => {
1131 None => {
1132 cx.editor
1132 cx.editor
1133− .set_error("no language server supports goto-implementation");
1133+ .set_error("No language server supports goto-implementation");
1134 return;
1134 return;
1135 }
1135 }
1136 };
1136 };
@@ -1164,7 +1164,7 @@ pub fn goto_reference(cx: &mut Context) {
1164 Some(future_offset_encoding) => future_offset_encoding,
1164 Some(future_offset_encoding) => future_offset_encoding,
1165 None => {
1165 None => {
1166 cx.editor
1166 cx.editor
1167− .set_error("language server supports goto-reference");
1167+ .set_error("No language server supports goto-reference");
1168 return;
1168 return;
1169 }
1169 }
1170 };
1170 };
helix-view/src/editor.rs+1−1
@@ -48,7 +48,7 @@ use helix_core::{
48};
48};
49use helix_core::{Position, Selection};
49use helix_core::{Position, Selection};
50use helix_dap as dap;
50use helix_dap as dap;
51−use helix_lsp::{lsp, OffsetEncoding};
51+use helix_lsp::lsp;
52
52
53use serde::{ser::SerializeMap, Deserialize, Deserializer, Serialize, Serializer};
53use serde::{ser::SerializeMap, Deserialize, Deserializer, Serialize, Serializer};
54
54