summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-05-07 03:20:15 +0100
committerGitHub <noreply@github.com>2024-05-07 03:20:15 +0100
commitcbb78e138ffbfc92ca64f2cce56dd5c629e4f142 (patch)
treedee2b10f18b74333e54d427e9e848e2e3f3c5fcc /cli/lsp/diagnostics.rs
parent1587387bccb6dbecd85f5141dd7543f013d47cd8 (diff)
refactor(lsp): reland move resolver fields to LspResolver (#23685)
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,