mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rd-editor] IJPL-192250 Do not use focus-based document reference to form undo/redo stacks
GitOrigin-RevId: 4c2c8d84b09f72d1fb319b33bae9f2994d085740
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fa0eceb82c
commit
60fa02426b
@@ -184,6 +184,7 @@ final class UndoClientState implements Disposable {
|
||||
currentProject = commandProject;
|
||||
}
|
||||
if (project != null && project == commandProject && recordOriginalReference) {
|
||||
// note: originatorReference depends on FocusedComponent :sad_trombone_for_rd:, see IJPL-192250
|
||||
originatorReference = UndoDocumentUtil.getDocReference(project, editorProvider);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -346,7 +346,8 @@ public class UndoManagerImpl extends UndoManager {
|
||||
mySharedUndoStacksHolder.trimStacks(Collections.singleton(docRef));
|
||||
}
|
||||
|
||||
void onCommandStarted(
|
||||
@ApiStatus.Internal
|
||||
protected void onCommandStarted(
|
||||
@Nullable Project project,
|
||||
@NotNull UndoConfirmationPolicy undoConfirmationPolicy,
|
||||
boolean recordOriginalReference
|
||||
|
||||
Reference in New Issue
Block a user