diff --git a/spellchecker/src/com/intellij/spellchecker/quickfixes/ChangeTo.kt b/spellchecker/src/com/intellij/spellchecker/quickfixes/ChangeTo.kt index d4fb2f35ca42..969dd51e866b 100644 --- a/spellchecker/src/com/intellij/spellchecker/quickfixes/ChangeTo.kt +++ b/spellchecker/src/com/intellij/spellchecker/quickfixes/ChangeTo.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.spellchecker.quickfixes import com.intellij.codeInsight.intention.FileModifier @@ -10,6 +10,7 @@ import com.intellij.codeInsight.intention.preview.IntentionPreviewUtils import com.intellij.openapi.editor.Document import com.intellij.openapi.editor.Editor import com.intellij.openapi.editor.impl.DocumentMarkupModel +import com.intellij.openapi.project.DumbAware import com.intellij.openapi.project.Project import com.intellij.openapi.util.NlsSafe import com.intellij.openapi.util.Segment @@ -32,13 +33,13 @@ class ChangeTo(typo: String, element: PsiElement, private val range: TextRange) } } - private object ChangeToTitleAction : ChoiceTitleIntentionAction(fixName, fixName), HighPriorityAction + private object ChangeToTitleAction : ChoiceTitleIntentionAction(fixName, fixName), HighPriorityAction, DumbAware override fun getTitle(): ChoiceTitleIntentionAction = ChangeToTitleAction private inner class ChangeToVariantAction( override val index: Int - ) : ChoiceVariantIntentionAction(), HighPriorityAction { + ) : ChoiceVariantIntentionAction(), HighPriorityAction, DumbAware { @NlsSafe private var suggestion: String? = null diff --git a/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java b/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java index 03023b942c31..a6bdad7a1f1e 100644 --- a/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java +++ b/spellchecker/src/com/intellij/spellchecker/quickfixes/SaveTo.java @@ -13,6 +13,7 @@ import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.impl.DocumentMarkupModel; import com.intellij.openapi.editor.markup.MarkupModel; import com.intellij.openapi.editor.markup.RangeHighlighter; +import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.popup.JBPopupFactory; import com.intellij.openapi.util.NlsContexts; @@ -36,7 +37,7 @@ import javax.swing.*; import java.util.ArrayList; import java.util.List; -public final class SaveTo implements SpellCheckerQuickFix, LowPriorityAction { +public final class SaveTo implements SpellCheckerQuickFix, LowPriorityAction, DumbAware { @Nullable private DictionaryLayer myLayer = null; private String myWord;