From 84d4d82d6ea5def53fa1e5230c8d8d42b145279d Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Tue, 14 Oct 2025 10:01:06 +0300 Subject: [PATCH] [toolwindow] IJPL-59194 Disable tool window reorder in RemDev In RemDev mode tool windows are synced with between frontend and backend. And now the dragged tab is disposed on the backend, which breaks it on the frontend. Fixing it requires improvements in the tool window contents synchronization, which are not obvious at the moment. GitOrigin-RevId: ba8ad95ac256f8b6be03f015147d1eaf604f8e8f --- .../src/com/intellij/toolWindow/ToolWindowInnerDragHelper.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowInnerDragHelper.kt b/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowInnerDragHelper.kt index c4bf8fe8b1c8..d1d5915f3860 100644 --- a/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowInnerDragHelper.kt +++ b/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowInnerDragHelper.kt @@ -2,6 +2,7 @@ package com.intellij.toolWindow import com.intellij.ide.DataManager +import com.intellij.idea.AppModeAssertions import com.intellij.openapi.Disposable import com.intellij.openapi.application.WriteIntentReadAction import com.intellij.openapi.application.invokeLater @@ -457,7 +458,7 @@ internal class ToolWindowInnerDragHelper(parent: Disposable, val pane: JComponen } private fun canReorderTabs(): Boolean { - return Registry.`is`("ide.allow.tool.window.tabs.reorder", false) + return AppModeAssertions.isMonolith() && Registry.`is`("ide.allow.tool.window.tabs.reorder", false) } private sealed interface DropLocation {