mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-163195 - ignore creation the fix if it's a batch mode
GitOrigin-RevId: 8574fa25c43de38058cd18848d0d77314b5fbfc5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7ef1e04f92
commit
3c105474e5
+8
-5
@@ -42,6 +42,11 @@ public class AssertWithoutMessageInspection extends BaseInspection {
|
||||
return InspectionGadgetsBundle.message("assert.without.message.problem.descriptor");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean buildQuickFixesOnlyForOnTheFlyErrors() {
|
||||
return true;
|
||||
}
|
||||
|
||||
private static class AssertionsWithoutMessagesVisitor extends BaseInspectionVisitor {
|
||||
|
||||
@Override
|
||||
@@ -82,11 +87,9 @@ public class AssertWithoutMessageInspection extends BaseInspection {
|
||||
createdMessageExpr = methodArgs.add(newMessageExpr);
|
||||
}
|
||||
|
||||
if (isOnTheFly()) {
|
||||
Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor();
|
||||
if (editor == null) return;
|
||||
editor.getCaretModel().moveToOffset(createdMessageExpr.getTextOffset() + 1);
|
||||
}
|
||||
Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor();
|
||||
if (editor == null) return;
|
||||
editor.getCaretModel().moveToOffset(createdMessageExpr.getTextOffset() + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user