diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-05-29 01:26:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-29 01:26:43 +0100 |
| commit | 14a74600de6f1c206ffe4750f6cb6da59657db8e (patch) | |
| tree | ce593041af972fd31f83fa6b7b50458bc9f689dc /cli/lsp/tsc.rs | |
| parent | 2024c974b613f94f31559a1b32e2d747c2083e91 (diff) | |
perf(lsp): lock out requests until init is complete (#23998)
Diffstat (limited to 'cli/lsp/tsc.rs')
| -rw-r--r-- | cli/lsp/tsc.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 9215be074..ebd3fc973 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -5184,9 +5184,8 @@ mod tests { .unwrap(), ) .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 { |
