diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs index 307e86de45..cdf1fa4be4 100644 --- a/crates/project/src/lsp_store.rs +++ b/crates/project/src/lsp_store.rs @@ -3499,7 +3499,7 @@ impl LspStore { .to_owned(); let path = if Path::new(path).components().next().is_none() { - Arc::from(Path::new("/")) + Arc::from(Path::new(worktree_root_path)) } else { PathBuf::from(path).into() };