Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for cache options in config files. (#2184)
# Add support for cache options in config files A new config section has been added, `cache`. As a rule, any options specified on the command line override options in the configuration files. ## `cspell.json` ```ts { cache?: CacheSettings; } ``` ## CacheSettings: ```ts { /** * Store the results of processed files in order to only operate on the changed ones. * @default false */ useCache?: boolean; // cspell:word cspellcache /** * Path to the cache location. Can be a file or a directory. * If none specified `.cspellcache` will be used. * Relative paths are relative to the config file in which */ cacheLocation?: FSPathResolvable; /** * Strategy to use for detecting changed files, default: metadata * @default 'metadata' */ cacheStrategy?: CacheStrategy; } ``` ## New CLI Option `--no-cache` - `--no-cache` ensures that the cache is not used even if `cspell.json` has caching enabled. ## Misc * Improve testing of cache options in application. * Add cli option `--no-cache`
- Loading branch information
Showing
34 changed files
with
531 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.