mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor(lsp): unify caching into LspCache (#23746)
This commit is contained in:
parent
f0e8ec0146
commit
439b3b8db9
10 changed files with 449 additions and 498 deletions
5
cli/cache/deno_dir.rs
vendored
5
cli/cache/deno_dir.rs
vendored
|
@ -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,
|
||||
}
|
||||
|
|
2
cli/cache/disk_cache.rs
vendored
2
cli/cache/disk_cache.rs
vendored
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue