vscode-languagetool-linter
vscode-languagetool-linter copied to clipboard
Manage Ignored Rules Internally
Managed ignored rules similar to how ignored words are managed. Consider adding an option to either pass the rules to LanguageTool, or simply have rules ignored on the client side.
Would it be a step forward to allow regular expression in ignored word ?
@St-Ex-savadenn - I'm open to the idea, but I'm not sure I understand the suggestion. Can you describe a little more how this would work?
In the settings
Ignored Words Globalsupport both simple word and regular expression. If a word match either a word or a regex, it's ignored from the linter.In the following exemple, the second entry would prevent several word to be detect as error : Github, Gitlab, Gitfoobarb, etc
I'll try a PR with this idea if you want
See https://github.com/davidlday/vscode-languagetool-linter/issues/150
I just read manager.ts and it might be better to have a list of regular expression on its own. To prevent calling a regex match on a very long list of word.
See https://github.com/davidlday/vscode-languagetool-linter/issues/150
@St-Ex-savadenn - I think I get it now.
This issue is about adding a feature to ignore LanguageTool Rules, like SENTENCE_WHITESPACE.
I think you're suggesting using regex as rules for ignoring groups of words during spell check. If that's the case, would you please open a new feature request Issue? Very interesting idea. Had not even crossed my mind.
Thank you!
