diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs index 307e86de450b7fd5248b37bd8b10c50ab0848c87..cdf1fa4be492dcc248a4254fbc2bc729ee6871f6 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() };