aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-16 07:13:41 +0000
committerBlaž Hrastnik2021-03-16 07:13:41 +0000
commiteca2a73ad0e829dbd83da8f42a8a2bd5c17bbf75 (patch)
tree8e3048121e58f0e475245383b0015d40aee202e9 /helix-term
parent143cfe13e05b17840a9f2c69417ed98bc3b8cb0e (diff)
lsp: Pass through language_id on didOpenTextDocument.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
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