From 7c9809eeb2708a9eba3c3cc48c9513e9892409f0 Mon Sep 17 00:00:00 2001 From: ath3 Date: Mon, 3 Oct 2022 17:02:49 +0200 Subject: Find workspace from document path (#3553) --- helix-view/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index f3b0e26f..e144a830 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -868,7 +868,7 @@ impl Editor { // try to find a language server based on the language name let language_server = doc.language.as_ref().and_then(|language| { - ls.get(language) + ls.get(language, doc.path()) .map_err(|e| { log::error!( "Failed to initialize the LSP for `{}` {{ {} }}", -- cgit v1.2.3-70-g09d2