mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-199855 Performance Degradation in DataSetPerformanceTest
Merge-request: IJ-MR-171183 Merged-by: Ilia Permiashkin <ilia.permiashkin@jetbrains.com> GitOrigin-RevId: 7fcdd29105138f4bbbf7ec33f066fa801fe01189
This commit is contained in:
committed by
intellij-monorepo-bot
parent
685cf0a8be
commit
54dc320eca
@@ -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)
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ class GrazieSpellCheckerEngine(
|
||||
|
||||
override fun isDictionaryLoad(name: String): Boolean = adapter.containsSource(name)
|
||||
|
||||
override fun getDictionaryNames(): Set<String> = adapter.names
|
||||
override fun getDictionaryNames(): Set<String> = adapter.dictionaryNames
|
||||
|
||||
override fun loadDictionary(loader: Loader) {
|
||||
this.loader.loadWordList(loader, adapter::addList)
|
||||
|
||||
+3
@@ -12,6 +12,9 @@ internal abstract class EditableWordListAdapter {
|
||||
val names: Set<String>
|
||||
get() = aggregator.keys + dictionaries.keys
|
||||
|
||||
val dictionaryNames: Set<String>
|
||||
get() = dictionaries.keys
|
||||
|
||||
fun addDictionary(dictionary: Dictionary) {
|
||||
dictionaries[dictionary.name] = dictionary
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user