diff --git a/spellchecker/src/com/intellij/spellchecker/SpellCheckerManager.kt b/spellchecker/src/com/intellij/spellchecker/SpellCheckerManager.kt index e9273351f065..9b1b83415019 100644 --- a/spellchecker/src/com/intellij/spellchecker/SpellCheckerManager.kt +++ b/spellchecker/src/com/intellij/spellchecker/SpellCheckerManager.kt @@ -223,8 +223,6 @@ class SpellCheckerManager @Internal constructor(@Internal val project: Project, fun removeDictionary(path: String): Unit = spellChecker!!.removeDictionary(path) - fun isDictionaryLoad(path: String): Boolean = spellChecker!!.isDictionaryLoad(path) - fun hasProblem(word: String): Boolean { return !spellChecker!!.isCorrect(word) && !isCorrectExtensionWord(word) } diff --git a/spellchecker/src/com/intellij/spellchecker/grazie/GrazieSpellCheckerEngine.kt b/spellchecker/src/com/intellij/spellchecker/grazie/GrazieSpellCheckerEngine.kt index 117d84871678..9b103d70c0a0 100644 --- a/spellchecker/src/com/intellij/spellchecker/grazie/GrazieSpellCheckerEngine.kt +++ b/spellchecker/src/com/intellij/spellchecker/grazie/GrazieSpellCheckerEngine.kt @@ -138,7 +138,7 @@ class GrazieSpellCheckerEngine( override fun isDictionaryLoad(name: String): Boolean = adapter.containsSource(name) - override fun getDictionaryNames(): Set = adapter.names + override fun getDictionaryNames(): Set = adapter.dictionaryNames override fun loadDictionary(loader: Loader) { this.loader.loadWordList(loader, adapter::addList) diff --git a/spellchecker/src/com/intellij/spellchecker/grazie/dictionary/EditableWordListAdapter.kt b/spellchecker/src/com/intellij/spellchecker/grazie/dictionary/EditableWordListAdapter.kt index 0c1f7c126a67..fe5ee2924a87 100644 --- a/spellchecker/src/com/intellij/spellchecker/grazie/dictionary/EditableWordListAdapter.kt +++ b/spellchecker/src/com/intellij/spellchecker/grazie/dictionary/EditableWordListAdapter.kt @@ -12,6 +12,9 @@ internal abstract class EditableWordListAdapter { val names: Set get() = aggregator.keys + dictionaries.keys + val dictionaryNames: Set + get() = dictionaries.keys + fun addDictionary(dictionary: Dictionary) { dictionaries[dictionary.name] = dictionary }