aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-11-05 06:15:19 +0000
committerBlaž Hrastnik2020-12-03 04:12:07 +0000
commita7869c728c663f255d5d2544e42f21ccf57b2414 (patch)
tree3f4405002a180d1e1d3c63acf1c8fe65abb35684 /helix-term/src
parent3f707c19f46284d745568c632a57103eb1be4dd4 (diff)
wip
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index cacfde56..141779ec 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -636,9 +636,17 @@ impl<'a> Application<'a> {
}
}
Some(Call::MethodCall(call)) => {
- // TODO: need to make Result<Value, Error>
-
- unimplemented!("{:?}", call)
+ debug!("Method not found {}", call.method);
+
+ self.language_server.reply(
+ call.id,
+ // TODO: make a Into trait that can cast to Err(jsonrpc::Error)
+ Err(helix_lsp::jsonrpc::Error {
+ code: helix_lsp::jsonrpc::ErrorCode::MethodNotFound,
+ message: "Method not found".to_string(),
+ data: None,
+ }),
+ );
}
_ => unreachable!(),
}