There was an error while loading. Please reload this page.
1 parent 29bc001 commit 2fcf6fdCopy full SHA for 2fcf6fd
1 file changed
crates/lsp/src/lib.rs
@@ -128,7 +128,9 @@ impl LanguageServer {
128
let config = load_config(workspace_root.as_deref());
129
130
#[cfg(not(target_arch = "wasm32"))]
131
- let workspace_root = workspace_root.unwrap_or_else(|| std::env::current_dir().unwrap());
+ let workspace_root = workspace_root.unwrap_or_else(|| {
132
+ std::env::current_dir().unwrap_or_else(|_| PathBuf::from("."))
133
+ });
134
135
#[cfg(target_arch = "wasm32")]
136
let _ = workspace_root;
0 commit comments