diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-19 20:22:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 20:22:17 -0500 |
commit | 54d40e008a0905a28569dbeb6f12a1a02189c217 (patch) | |
tree | dc2eced3167f153c50f8ef367b4c953f75ea7a3f /cli/npm/resolvers/mod.rs | |
parent | 1e0017d8fc3a7ed0dd5775196a861d46caea5c33 (diff) |
perf(lsp): concurrent reads and exclusive writes (#17135)
Diffstat (limited to 'cli/npm/resolvers/mod.rs')
-rw-r--r-- | cli/npm/resolvers/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<NpmPackageReq>, |