diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-05-01 11:24:25 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 05:54:25 +0000 |
commit | 7f80d90f1c70dfc4f5bb6934e65338817ff265d2 (patch) | |
tree | 041e7226949d2f644b8cbc4f641200b9d55bec7e /cli/lsp/diagnostics.rs | |
parent | 56bf634fa9721832b605dd91ced5329e0329a8f8 (diff) |
Revert "refactor(lsp): move fields from Documents to LspResolver" (#23626)
This reverts commit 5cae3439912ad60eb2866f3d4372a5fe4d0de957.

Caused a +3.3s regression in one of the LSP benchmarks at
deno.land/benchmarks.
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r-- | cli/lsp/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs index 1825a97a4..87bb72d1e 100644 --- a/cli/lsp/diagnostics.rs +++ b/cli/lsp/diagnostics.rs @@ -1591,7 +1591,7 @@ mod tests { location.to_path_buf(), RealDenoCacheEnv, )); - let mut documents = Documents::new(cache.clone()); + let mut documents = Documents::new(cache); for (specifier, source, version, language_id) in fixtures { let specifier = resolve_url(specifier).expect("failed to create specifier"); @@ -1614,7 +1614,7 @@ mod tests { config.tree.inject_config_file(config_file).await; } let resolver = LspResolver::default() - .with_new_config(&config, cache, None, None) + .with_new_config(&config, None, None) .await; StateSnapshot { project_version: 0, |