From bac8e4f6f25367cf5b6c2095249cf144035a4fbd Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 1 Apr 2023 12:02:44 -0400 Subject: fix(repl): disable language server document preloading in the repl (#18543) This was an oversight because the repl uses the language server under the hood. Also, never preloads from a root directory. Part of #18538 --- cli/lsp/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp/diagnostics.rs') diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index 8ba8ce074..539868eca 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1079,7 +1079,7 @@ mod tests { location: &Path, maybe_import_map: Option<(&str, &str)>, ) -> StateSnapshot { - let mut documents = Documents::new(location); + let mut documents = Documents::new(location, Default::default()); for (specifier, source, version, language_id) in fixtures { let specifier = resolve_url(specifier).expect("failed to create specifier"); -- cgit v1.2.3