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/common.rs | |
parent | 1e0017d8fc3a7ed0dd5775196a861d46caea5c33 (diff) |
perf(lsp): concurrent reads and exclusive writes (#17135)
Diffstat (limited to 'cli/npm/resolvers/common.rs')
-rw-r--r-- | cli/npm/resolvers/common.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/npm/resolvers/common.rs b/cli/npm/resolvers/common.rs index 4f2a6d82a..a75c86c1c 100644 --- a/cli/npm/resolvers/common.rs +++ b/cli/npm/resolvers/common.rs @@ -52,6 +52,8 @@ pub trait InnerNpmPackageResolver: Send + Sync { packages: HashSet<NpmPackageReq>, ) -> BoxFuture<'static, Result<(), AnyError>>; + fn cache_packages(&self) -> BoxFuture<'static, Result<(), AnyError>>; + fn ensure_read_permission(&self, path: &Path) -> Result<(), AnyError>; fn snapshot(&self) -> NpmResolutionSnapshot; |