From 54d40e008a0905a28569dbeb6f12a1a02189c217 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 19 Dec 2022 20:22:17 -0500 Subject: perf(lsp): concurrent reads and exclusive writes (#17135) --- cli/npm/resolvers/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/npm/resolvers/mod.rs') diff --git a/cli/npm/resolvers/mod.rs b/cli/npm/resolvers/mod.rs index 0f1ed5d85..6225242a4 100644 --- a/cli/npm/resolvers/mod.rs +++ b/cli/npm/resolvers/mod.rs @@ -276,6 +276,7 @@ impl NpmPackageResolver { } self.inner.add_package_reqs(packages).await?; + self.inner.cache_packages().await?; // If there's a lock file, update it with all discovered npm packages if let Some(lockfile_mutex) = &self.maybe_lockfile { @@ -287,6 +288,8 @@ impl NpmPackageResolver { } /// Sets package requirements to the resolver, removing old requirements and adding new ones. + /// + /// This will retrieve and resolve package information, but not cache any package files. pub async fn set_package_reqs( &self, packages: HashSet, -- cgit v1.2.3