feat: Control which settings are passed to cspell #2868
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of the common issues is that the results seen in the extension do not match the results seen by the command line tool.
This is often due to settings in VSCode influencing the extension results.
mergeCSpellSettings
- allows more control over what settings are passed tocspell
. By default, if a cspell config file is found, settings that might impact the result are not sent.Setting
mergeCSpellSettings
to true is the same as:Some vscode settings still have an impact, these mostly have to do with user experience, like how often to spell check and how many errors to show.
The key thing is, that if a file is spell checked, the results should be the same as the command line tool.
enabled
- still allows the user to turn on/off the spell checker in vscode.enabledFiletypes
- still allows the user to control which files are checked. Add"enabledFiletypes": ["*"]
tocspell.json
to override this.