mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
Revert "refactor(lsp): move fields from Documents to LspResolver" (#23626)
This reverts commit5cae343991
.  Caused a +3.3s regression in one of the LSP benchmarks at deno.land/benchmarks.
This commit is contained in:
parent
56bf634fa9
commit
7f80d90f1c
6 changed files with 180 additions and 203 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue