Skip to content

modal editor - tweaks to UI depending on setting#300082

Merged
bpasero merged 2 commits intomainfrom
ben/naughty-cod
Mar 8, 2026
Merged

modal editor - tweaks to UI depending on setting#300082
bpasero merged 2 commits intomainfrom
ben/naughty-cod

Conversation

@bpasero
Copy link
Copy Markdown
Member

@bpasero bpasero commented Mar 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 8, 2026 18:58
@bpasero bpasero enabled auto-merge (squash) March 8, 2026 18:58
@bpasero bpasero self-assigned this Mar 8, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the modal editor overlay UI to better reflect the workbench.editor.useModal setting, primarily by dynamically changing tab visibility based on mode and editor count.

Changes:

  • Update modal editor part options so tabs can be shown when multiple editors are open (and only in useModal=all mode).
  • Rework modal drag/centering math to clamp/center within the main container more consistently.
  • Add unit tests to validate tab visibility behavior for useModal=all vs some, and expose configurationService to EditorPart subclasses.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/services/editor/test/browser/modalEditorGroup.test.ts Adds tests asserting modal tab visibility changes based on useModal mode and editor count.
src/vs/workbench/browser/parts/editor/modalEditorPart.ts Implements dynamic modal showTabs enforcement and updates modal positioning calculations.
src/vs/workbench/browser/parts/editor/editorPart.ts Changes configurationService visibility to protected to enable subclass access.

Comment thread src/vs/workbench/browser/parts/editor/modalEditorPart.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bpasero bpasero merged commit ef79c15 into main Mar 8, 2026
20 checks passed
@bpasero bpasero deleted the ben/naughty-cod branch March 8, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants