aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
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-lsp/src
parent143cfe13e05b17840a9f2c69417ed98bc3b8cb0e (diff)
lsp: Pass through language_id on didOpenTextDocument.
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/client.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index edec10a9..a9b7fe20 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -244,11 +244,12 @@ impl Client {
uri: lsp::Url,
version: i32,
doc: &Rope,
+ language_id: String,
) -> Result<()> {
self.notify::<lsp::notification::DidOpenTextDocument>(lsp::DidOpenTextDocumentParams {
text_document: lsp::TextDocumentItem {
uri,
- language_id: "rust".to_string(), // TODO: hardcoded for now
+ language_id,
version,
text: String::from(doc),
},