Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(harper-ls): always return empty MutableDictionary for "untitled"
Donny Kime5bb937ce83c
diff --git a/harper-ls/src/backend.rs b/harper-ls/src/backend.rsindex 42c32af4d..470c889b0 100644--- a/harper-ls/src/backend.rs+++ b/harper-ls/src/backend.rs@@ -51,6 +51,11 @@ impl Backend {/// Load a specific file's dictionaryasync fn load_file_dictionary(&self, url: &Url) -> anyhow::Result<MutableDictionary> {+ // VS Code's unsaved documents have "untitled" scheme+ if url.scheme() == "untitled" {+ return Ok(MutableDictionary::new());+ }+let path = self.get_file_dict_path(url).await