mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
perf(fmt/lint): incremental formatting and linting (#14314)
This commit is contained in:
parent
803499886b
commit
ae479b1036
11 changed files with 645 additions and 49 deletions
|
@ -44,6 +44,18 @@ impl DenoDir {
|
|||
|
||||
Ok(deno_dir)
|
||||
}
|
||||
|
||||
/// Path for the incremental cache used for formatting.
|
||||
pub fn fmt_incremental_cache_db_file_path(&self) -> PathBuf {
|
||||
// bump this version name to invalidate the entire cache
|
||||
self.root.join("fmt_incremental_cache_v1")
|
||||
}
|
||||
|
||||
/// Path for the incremental cache used for linting.
|
||||
pub fn lint_incremental_cache_db_file_path(&self) -> PathBuf {
|
||||
// bump this version name to invalidate the entire cache
|
||||
self.root.join("lint_incremental_cache_v1")
|
||||
}
|
||||
}
|
||||
|
||||
/// To avoid the poorly managed dirs crate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue