diff options
author | ath3 | 2022-10-03 15:02:49 +0000 |
---|---|---|
committer | GitHub | 2022-10-03 15:02:49 +0000 |
commit | 7c9809eeb2708a9eba3c3cc48c9513e9892409f0 (patch) | |
tree | f0e5cebc206845c83de11a002a40a74c5d383a10 /helix-term | |
parent | 66bbba90242e499d7178d4beae1054019067d1c9 (diff) |
Find workspace from document path (#3553)
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands/typed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index d5a368a2..c2c37291 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1000,7 +1000,7 @@ fn lsp_restart( .context("LSP not defined for the current document")?; let scope = config.scope.clone(); - cx.editor.language_servers.restart(config)?; + cx.editor.language_servers.restart(config, doc.path())?; // This collect is needed because refresh_language_server would need to re-borrow editor. let document_ids_to_refresh: Vec<DocumentId> = cx |