diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-26 19:59:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 23:59:17 +0000 |
commit | c89a20b42899abff5c3ea84660c8110806c5fbee (patch) | |
tree | e9d93ce49b391faf0058bd3223ba72d398f78fc8 /cli/lsp/cache.rs | |
parent | e13230226fe91498b3a5f28a8de6edbe4f164944 (diff) |
perf(cache): single cache file for remote modules (#24983)
This changes the global cache to store the cache file for remote modules
in one file instead of two.
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r-- | cli/lsp/cache.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs index 5dae38c20..d3c05ca91 100644 --- a/cli/lsp/cache.rs +++ b/cli/lsp/cache.rs @@ -17,16 +17,6 @@ use std::path::Path; use std::sync::Arc; use std::time::SystemTime; -/// In the LSP, we disallow the cache from automatically copying from -/// the global cache to the local cache for technical reasons. -/// -/// 1. We need to verify the checksums from the lockfile are correct when -/// moving from the global to the local cache. -/// 2. We need to verify the checksums for JSR https specifiers match what -/// is found in the package's manifest. -pub const LSP_DISALLOW_GLOBAL_TO_LOCAL_COPY: deno_cache_dir::GlobalToLocalCopy = - deno_cache_dir::GlobalToLocalCopy::Disallow; - pub fn calculate_fs_version( cache: &LspCache, specifier: &ModuleSpecifier, |