fix Undo in Rider functional tests

This commit is contained in:
kskrygan
2017-10-13 15:29:25 +02:00
parent b0c3e65938
commit 2f1a9d3de9
2 changed files with 4 additions and 1 deletions
@@ -60,6 +60,9 @@ import java.util.List;
public class UndoManagerImpl extends UndoManager implements Disposable {
private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.command.impl.UndoManagerImpl");
@TestOnly
public static boolean ourNeverAskUser = false;
private static final int COMMANDS_TO_KEEP_LIVE_QUEUES = 100;
private static final int COMMAND_TO_RUN_COMPACT = 20;
private static final int FREE_QUEUES_LIMIT = 30;
@@ -103,7 +103,7 @@ abstract class UndoRedo {
}
if (!isInsideStartFinishGroup && myUndoableGroup.shouldAskConfirmation(isRedo())) {
if (!isInsideStartFinishGroup && myUndoableGroup.shouldAskConfirmation(isRedo()) && !UndoManagerImpl.ourNeverAskUser) {
if (!askUser()) return false;
}
else {