valentjn / vscode-ltex

LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
800 stars 27 forks source link

[Request] Allow for caterory id use instead of rule id in ltex.diagnosticSeverity #829

Open SeniorMars opened 1 year ago

SeniorMars commented 1 year ago

Note: Per the contribution guidelines, deleting parts of the template or not filling in vital information may result in the issue to be immediately closed as invalid.

Is your feature request related to a problem? Please describe. Currently, I'm setting up diagnostics to be like this:

  "ltex.diagnosticSeverity": {
    "CONFUSED_WORDS": "warning",
    "UPPERCASE_SENTENCE_START": "warning",
    "DATE_WEEKDAY": "warning",
    "MORFOLOGIK_RULE_EN_US": "error",
    "EN_CONTRACTION_SPELLING": "error",
    "EN_A_VS_AN": "error",
    "IN_A_X_MANNER": "hint",
    "PASSIVE_VOICE": "hint",
    "EN_SPECIFIC_CASE": "hint",
    "APOS_AR": "hint",
    "DOUBLE_HYPHEN": "hint",
    "SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA": "hint",
    "default": "information"
  },

I get the rule ID and set it up to my preference. However, I'm pretty sure that the language tool editor does not underline by rule, but by category. For example, here (https://community.languagetool.org/rule/show/EN_CONTRACTION_SPELLING?lang=en-us) we see that the rule id for this is " EN_CONTRACTION_SPELLING" while the category id is "TYPOS". Which would be much faster.

Describe the solution you'd like It would be so much easier to customize diagnostic by category then rule id.

Describe alternatives you've considered Doing this by hand :(

Additional context NA