From eca2a73ad0e829dbd83da8f42a8a2bd5c17bbf75 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 16 Mar 2021 16:13:41 +0900 Subject: lsp: Pass through language_id on didOpenTextDocument. --- helix-term/src/commands.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-term/src') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 16f43591..d80662d7 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1183,6 +1183,7 @@ pub fn completion(cx: &mut Context) { let pos = helix_lsp::util::pos_to_lsp_pos(doc.text().slice(..), doc.selection().cursor()); // TODO: handle fails + let res = smol::block_on(language_server.completion(doc.identifier(), pos)).unwrap_or_default(); // TODO: if no completion, show some message or something -- cgit v1.2.3-70-g09d2