python: write action is unnecessary in some quick fixes
[idea/community.git] / python / python-rest / src / com / jetbrains / rest / quickfixes / AddIgnoredRoleFix.java
index c25ac297b7d66f73fde1054fbfb74ef4bba29ef9..6e503842cec69f90d10e882f2f8c7efec39a8ec3 100644 (file)
@@ -48,6 +48,11 @@ public class AddIgnoredRoleFix implements LocalQuickFix, LowPriorityAction {
     return "Ignore undefined role";
   }
 
+  @Override
+  public boolean startInWriteAction() {
+    return false;
+  }
+
   @Override
   public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
     if (!myInspection.ignoredRoles.contains(myRole)) {