From 28a72d548801f81a96ff4bba750d8dc51a2b1567 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 11 May 2023 17:17:14 -0400 Subject: feat(lsp): ability to configure document pre-load limit (#19097) Adds a `deno.preloadLimit` option (ex. `"deno.preloadLimit": 2000`) which specifies how many file entries to traverse on the file system when the lsp loads or its configuration changes. Closes #18955 --- 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 b650d8e55..7d13cfdb5 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1096,7 +1096,7 @@ mod tests { location: &Path, maybe_import_map: Option<(&str, &str)>, ) -> StateSnapshot { - let mut documents = Documents::new(location, Default::default()); + let mut documents = Documents::new(location); for (specifier, source, version, language_id) in fixtures { let specifier = resolve_url(specifier).expect("failed to create specifier"); -- cgit v1.2.3