mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
FL-19258 save to dictionary is blocked by side effect guard
(cherry picked from commit 7c574b0dcf6f664a0f678725e26fd98a14f4483b) FLEET-MR-2323 GitOrigin-RevId: ce969e2b2c9745428e82e92cd9384246d0ad2f51
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3e40d8eb8a
commit
6b22b29a58
@@ -6,6 +6,7 @@ import com.intellij.codeInsight.intention.LowPriorityAction;
|
||||
import com.intellij.codeInspection.ProblemDescriptor;
|
||||
import com.intellij.codeInspection.ProblemDescriptorUtil;
|
||||
import com.intellij.ide.DataManager;
|
||||
import com.intellij.model.SideEffectGuard;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.popup.JBPopupFactory;
|
||||
@@ -96,6 +97,8 @@ public final class SaveTo implements SpellCheckerQuickFix, LowPriorityAction {
|
||||
}
|
||||
|
||||
private static void acceptWord(String word, DictionaryLevel level, ProblemDescriptor descriptor) {
|
||||
SideEffectGuard.checkSideEffectAllowed(SideEffectGuard.EffectType.SETTINGS);
|
||||
|
||||
PsiElement psi = descriptor.getPsiElement();
|
||||
PsiFile file = psi.getContainingFile();
|
||||
Project project = file.getProject();
|
||||
|
||||
Reference in New Issue
Block a user