From ac0a00b511fe15f6a1292c5f7eeccc605f99c08f Mon Sep 17 00:00:00 2001 From: Julian Valentin Date: Tue, 19 Oct 2021 08:33:44 +0200 Subject: [PATCH] Fix dictionary quick fix missing for de-AT, de-CH Fixes valentjn/vscode-ltex#431. --- changelog.xml | 3 +++ .../bsplines/ltexls/languagetool/LanguageToolRuleMatch.kt | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changelog.xml b/changelog.xml index c16e5602..15d34d26 100644 --- a/changelog.xml +++ b/changelog.xml @@ -16,6 +16,9 @@ Add support for completion requests for English and German + + Fix `Add '...' to dictionary` quick fix missing for Austrian and Swiss German + Move documentation to <https://valentjn.github.io/ltex> diff --git a/src/main/kotlin/org/bsplines/ltexls/languagetool/LanguageToolRuleMatch.kt b/src/main/kotlin/org/bsplines/ltexls/languagetool/LanguageToolRuleMatch.kt index e515c415..cf3a1817 100644 --- a/src/main/kotlin/org/bsplines/ltexls/languagetool/LanguageToolRuleMatch.kt +++ b/src/main/kotlin/org/bsplines/ltexls/languagetool/LanguageToolRuleMatch.kt @@ -114,11 +114,11 @@ data class LanguageToolRuleMatch( return ((ruleId != null) && ( ruleId.startsWith("MORFOLOGIK_") || ruleId.startsWith("HUNSPELL_") - || ruleId.startsWith("GERMAN_SPELLER_") + || ruleId.endsWith("_SPELLER_RULE") + || ruleId.endsWith("_SPELLING_RULE") || (ruleId == "MUZSKY_ROD_NEZIV_A") || (ruleId == "ZENSKY_ROD_A") - || (ruleId == "STREDNY_ROD_A") - || (ruleId == "FR_SPELLING_RULE"))) + || (ruleId == "STREDNY_ROD_A"))) } } }