From 3617f17095aafa46c9ef191d8b384c7aa9774ec0 Mon Sep 17 00:00:00 2001 From: Ivan Semenov Date: Mon, 7 Jul 2025 13:09:22 +0200 Subject: [PATCH] [xdebugger] clear an unnecessary border from the console view GitOrigin-RevId: f22d65ac86dd9e859a83e719c06918257e2372a4 --- .../src/com/intellij/xdebugger/ui/XDebugTabLayouter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-api/src/com/intellij/xdebugger/ui/XDebugTabLayouter.java b/platform/xdebugger-api/src/com/intellij/xdebugger/ui/XDebugTabLayouter.java index 071cd9e07432..85bbd5fcb1f3 100644 --- a/platform/xdebugger-api/src/com/intellij/xdebugger/ui/XDebugTabLayouter.java +++ b/platform/xdebugger-api/src/com/intellij/xdebugger/ui/XDebugTabLayouter.java @@ -6,9 +6,12 @@ import com.intellij.execution.ui.ExecutionConsole; import com.intellij.execution.ui.RunnerLayoutUi; import com.intellij.execution.ui.layout.PlaceInGrid; import com.intellij.ui.content.Content; +import com.intellij.util.ui.UIUtil; import com.intellij.xdebugger.XDebuggerBundle; import org.jetbrains.annotations.NotNull; +import javax.swing.*; + /** * Allows to customize xdebug layout for 'Debug' tool window. * @@ -25,7 +28,10 @@ public class XDebugTabLayouter { * @return registered {@code Content} instance */ public @NotNull Content registerConsoleContent(@NotNull RunnerLayoutUi ui, @NotNull ExecutionConsole console) { - Content content = ui.createContent(DebuggerContentInfo.CONSOLE_CONTENT, console.getComponent(), + JComponent component = console.getComponent(); + // remove the left border from console view + UIUtil.removeScrollBorder(component); + Content content = ui.createContent(DebuggerContentInfo.CONSOLE_CONTENT, component, XDebuggerBundle.message("debugger.session.tab.console.content.name"), null, console.getPreferredFocusableComponent());