mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[undo] IJPL-201535 Prepare FrontendCallActionRequest to perform an action on BE side inside FE command
GitOrigin-RevId: c17e88c50b0c502916064056f58d94f967baeb55
This commit is contained in:
committed by
intellij-monorepo-bot
parent
32a76c8067
commit
8f427503f4
@@ -104,8 +104,9 @@ public final class CommandMerger {
|
||||
}
|
||||
|
||||
void mergeWithPerformedCommand(@NotNull PerformedCommand performedCommand) {
|
||||
boolean isPartial = isPartialForeignCommand(performedCommand);
|
||||
mergeState(performedCommand);
|
||||
if (!performedCommand.isTransparent() && hasActions()) {
|
||||
if (!performedCommand.isTransparent() && (hasActions() || isPartial)) {
|
||||
Object groupId = performedCommand.groupId();
|
||||
if (groupId != SoftReference.dereference(lastGroupId)) {
|
||||
lastGroupId = groupId == null ? null : new WeakReference<>(groupId);
|
||||
|
||||
@@ -19,6 +19,8 @@ interface UndoSpy {
|
||||
|
||||
fun commandFinished(cmdFinishEvent: CmdEvent)
|
||||
|
||||
fun currentCmdEvent(): CmdEvent?
|
||||
|
||||
fun <T> withBlind(action: () -> T): T
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user