[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
This commit is contained in:
Konstantin Hudyakov
2025-10-14 20:21:34 +00:00
committed by intellij-monorepo-bot
parent f50c0da7f8
commit 84d4d82d6e
@@ -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 {