Revert "refactor(lsp): move fields from Documents to LspResolver" (#23626)

This reverts commit 5cae343991.


![image](e68e40a1-7baf-453b-80d9-f8b6aae186c7)

Caused a +3.3s regression in one of the LSP benchmarks at
deno.land/benchmarks.
This commit is contained in:
Divy Srivastava 2024-05-01 11:24:25 +05:30 committed by GitHub
parent 56bf634fa9
commit 7f80d90f1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 180 additions and 203 deletions

View file

@ -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,