mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
perf(lsp): concurrent reads and exclusive writes (#17135)
This commit is contained in:
parent
1e0017d8fc
commit
54d40e008a
7 changed files with 202 additions and 163 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue