mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix Undo in Rider functional tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user