-
-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
Problem
When the spell checker find a file to spell check, it also searches for the nearest CSpell config file. The current --stop-config-search-at command line option is only applied to the initial scan.
For example, it will keep searching up even though you give it stop dirs.
Example file structure:
cspell.json -> { "flagWords": ["my_flag_word"] }
cwd/
test.cspell.json -> { "words": ["my_flag_word"] }
test.txt -> Contains my_flag_wordcwd/$ cpsell -c test.cspell.json --stop-config-search-at=. *.txtThis will fail.
Originally posted by @Jason3S in #7440 (comment)
Solution
Add config option stopConfigSearchAt to CSpellSettings
stopConfigSearchAt?: FsPath | FsPath[]; Like dictionaryDefinition.path it needs to be resolved relative to the config file.
Metadata
Metadata
Assignees
Labels
No labels