perf(lsp): lock out requests until init is complete (#23998)

This commit is contained in:
Nayeem Rahman 2024-05-29 01:26:43 +01:00 committed by GitHub
parent 2024c974b6
commit 14a74600de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 321 additions and 239 deletions

View file

@ -1629,9 +1629,8 @@ mod tests {
.unwrap();
config.tree.inject_config_file(config_file).await;
}
let resolver = LspResolver::default()
.with_new_config(&config, &cache, None)
.await;
let resolver =
Arc::new(LspResolver::from_config(&config, &cache, None).await);
let mut documents = Documents::default();
documents.update_config(&config, &resolver, &cache, &Default::default());
for (specifier, source, version, language_id) in sources {