From 6fb487040d37ed4f68ef5922d3282d0db695222f Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Thu, 16 Nov 2023 11:09:46 +0100 Subject: [PATCH] aux window - show empty group actions and hide tips --- src/vs/workbench/browser/parts/editor/editorPart.ts | 3 +++ .../browser/parts/editor/media/editorgroupview.css | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/browser/parts/editor/editorPart.ts b/src/vs/workbench/browser/parts/editor/editorPart.ts index 816cc9fa36e8c..2fb1845bd6e3e 100644 --- a/src/vs/workbench/browser/parts/editor/editorPart.ts +++ b/src/vs/workbench/browser/parts/editor/editorPart.ts @@ -974,6 +974,9 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupsView { this.element = parent; this.container = document.createElement('div'); this.container.classList.add('content'); + if (this.isAuxiliary) { + this.container.classList.add('auxiliary'); + } parent.appendChild(this.container); // Scoped instantiation service diff --git a/src/vs/workbench/browser/parts/editor/media/editorgroupview.css b/src/vs/workbench/browser/parts/editor/media/editorgroupview.css index 676c6e0fff887..68757f6729c27 100644 --- a/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +++ b/src/vs/workbench/browser/parts/editor/media/editorgroupview.css @@ -71,7 +71,8 @@ } .monaco-workbench .part.editor > .content:not(.empty) .editor-group-container > .editor-group-watermark > .shortcuts, -.monaco-workbench .part.editor > .content .editor-group-container.max-height-478px > .editor-group-watermark > .shortcuts { +.monaco-workbench .part.editor > .content.auxiliary .editor-group-container > .editor-group-watermark > .shortcuts, + .monaco-workbench .part.editor > .content .editor-group-container.max-height-478px > .editor-group-watermark > .shortcuts { display: none; } @@ -159,8 +160,9 @@ height: 35px; } -.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container.empty > .editor-group-container-toolbar { - display: block; +.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container.empty > .editor-group-container-toolbar, +.monaco-workbench .part.editor > .content.auxiliary .editor-group-container.empty > .editor-group-container-toolbar { + display: block; /* show toolbar when more than one editor group or always when auxiliary */ } .monaco-workbench .part.editor > .content .editor-group-container > .editor-group-container-toolbar .actions-container {