fallback to run non-interactively on backend
authorSergey Stupin <sergey.stupin@jetbrains.com>
Wed, 12 Aug 2020 13:55:23 +0000 (15:55 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 13 Aug 2020 10:23:01 +0000 (10:23 +0000)
GitOrigin-RevId: c16766cfc440ac7331681c4d73e84325b4ff4d0e

python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/PyAnnotateTypesIntention.java

index dc4381ada54a39a5d63220bb61f26e22308bb666..1b844cc09dca95661f172191935eb4c8101744da 100644 (file)
@@ -157,6 +157,8 @@ public class PyAnnotateTypesIntention extends PyBaseIntentionAction {
                                                                              offset);
     if (targetEditor != null) {
       builder.run(targetEditor, true);
+    } else {
+      builder.runNonInteractively(true);
     }
   }