summaryrefslogtreecommitdiff
path: root/cli/lsp/repl.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-05-11 17:17:14 -0400
committerGitHub <noreply@github.com>2023-05-11 17:17:14 -0400
commit28a72d548801f81a96ff4bba750d8dc51a2b1567 (patch)
tree0a689e1256d6e20f071156f5c8d0f52758a58d2d /cli/lsp/repl.rs
parentc926bc0debd0df3bf62d5125a490f8675e70c6ef (diff)
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
Diffstat (limited to 'cli/lsp/repl.rs')
-rw-r--r--cli/lsp/repl.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/lsp/repl.rs b/cli/lsp/repl.rs
index ada8b9404..ad0171629 100644
--- a/cli/lsp/repl.rs
+++ b/cli/lsp/repl.rs
@@ -294,6 +294,7 @@ pub fn get_repl_workspace_settings() -> WorkspaceSettings {
inlay_hints: Default::default(),
internal_debug: false,
lint: false,
+ document_preload_limit: 0, // don't pre-load any modules as it's expensive and not useful for the repl
tls_certificate: None,
unsafely_ignore_certificate_errors: None,
unstable: false,