IJPL-27512 force spell checker to update the dictionary right away

For some reason, saving does not update the dictionary without the ` forceSavingAllSettings ` flag.

GitOrigin-RevId: 16aab9940cf46ba48478cd07812c88b94ada1082
This commit is contained in:
Max Medvedev
2024-08-20 08:36:36 +02:00
committed by intellij-monorepo-bot
parent dc3c5730ea
commit 3c5cbc2382

View File

@@ -273,7 +273,7 @@ class SpellCheckerManager @Internal constructor(@Internal val project: Project,
private fun fireDictionaryChanged(dictionary: EditableDictionary) {
userDictionaryListenerEventDispatcher.multicaster.dictChanged(dictionary)
restartInspections()
SaveAndSyncHandler.getInstance().scheduleProjectSave(project)
SaveAndSyncHandler.getInstance().scheduleProjectSave(project, forceSavingAllSettings = true)
}
fun updateUserDictionary(words: Collection<String>) {