summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-04-30 02:41:19 +0100
committerGitHub <noreply@github.com>2024-04-30 02:41:19 +0100
commit5cae3439912ad60eb2866f3d4372a5fe4d0de957 (patch)
tree87e5e8ad3a7c3bb399277198146cd276f60220b1 /cli/lsp/diagnostics.rs
parent783533d2e354ad73356d7517b26293e48c10fc17 (diff)
refactor(lsp): move fields from Documents to LspResolver (#23585)
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index 87bb72d1e..1825a97a4 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);
+ let mut documents = Documents::new(cache.clone());
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, None, None)
+ .with_new_config(&config, cache, None, None)
.await;
StateSnapshot {
project_version: 0,