[undo] IJPL-201535 Prepare FrontendCallActionRequest to perform an action on BE side inside FE command

GitOrigin-RevId: c17e88c50b0c502916064056f58d94f967baeb55
This commit is contained in:
Alexander Trushev
2026-01-13 10:53:08 +00:00
committed by intellij-monorepo-bot
parent 32a76c8067
commit 8f427503f4
2 changed files with 4 additions and 1 deletions
@@ -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 {