VSCode Extension -- Allow only checking included patterns
What problem does this solve?
I only want Harper to check certain types of files.
Harper currently supports harper.excludePatterns to exclude certain files: for example, I can skip all .txt files with "**/*.txt". However, this approach makes it very hard to exclude everything except what I want. I only want Harper to check actual "writing" files (.md, .tex, etc.), not config files, log files, or random scripts. Moreover, harper.excludePatterns can't skip files without an extension (zshrc, vimrc, etc), which is a real pain point, and I end up having to disable the extension entirely for those cases.
Proposed Solution
Add an option harper.includePatterns, so that only files matching the given patterns will be checked.
Examples
"harper.includePatterns" = ["**/*.tex", "**/*.md", "**/*.typ"]
Component
- Core engine
- Plugin/Extension
- Other: _____
Additional Context Any other relevant info.
Source: Automattic/harper