summaryrefslogtreecommitdiff
path: root/cli/cache
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-05-09 20:22:27 +0100
committerGitHub <noreply@github.com>2024-05-09 20:22:27 +0100
commit439b3b8db97106be44bb5fde9573632c20ed4e95 (patch)
tree22c54102ccddecaa0209d128f71fb33fc891fe4e /cli/cache
parentf0e8ec01461519dddcb61f1b91b4455a354e38e6 (diff)
refactor(lsp): unify caching into LspCache (#23746)
Diffstat (limited to 'cli/cache')
-rw-r--r--cli/cache/deno_dir.rs5
-rw-r--r--cli/cache/disk_cache.rs2
2 files changed, 3 insertions, 4 deletions
diff --git a/cli/cache/deno_dir.rs b/cli/cache/deno_dir.rs
index b56dfbc89..9f2911f71 100644
--- a/cli/cache/deno_dir.rs
+++ b/cli/cache/deno_dir.rs
@@ -33,11 +33,10 @@ impl DenoDirProvider {
/// `DenoDir` serves as coordinator for multiple `DiskCache`s containing them
/// in single directory that can be controlled with `$DENO_DIR` env variable.
-#[derive(Clone)]
+#[derive(Debug, Clone)]
pub struct DenoDir {
/// Example: /Users/rld/.deno/
- /// Note: This is not exposed in order to encourage using re-usable methods.
- root: PathBuf,
+ pub root: PathBuf,
/// Used by TsCompiler to cache compiler output.
pub gen_cache: DiskCache,
}
diff --git a/cli/cache/disk_cache.rs b/cli/cache/disk_cache.rs
index cd44dd17a..3aeebbc6d 100644
--- a/cli/cache/disk_cache.rs
+++ b/cli/cache/disk_cache.rs
@@ -14,7 +14,7 @@ use std::path::PathBuf;
use std::path::Prefix;
use std::str;
-#[derive(Clone)]
+#[derive(Debug, Clone)]
pub struct DiskCache {
pub location: PathBuf,
}