Skip to content

feat: Expose ViewColumn.Modal in API - #307838

Open
Marlin Ranasinghe (MarlzRana) wants to merge 2 commits into
microsoft:mainfrom
MarlzRana:marlzrana/expose-modal-view-via-extensions-api
Open

Marlin Ranasinghe (MarlzRana) wants to merge 2 commits into
microsoft:mainfrom
MarlzRana:marlzrana/expose-modal-view-via-extensions-api

Conversation

@MarlzRana

@MarlzRana Marlin Ranasinghe (MarlzRana) commented Apr 4, 2026 •

Copy link
Copy Markdown

Summary

Fixes #307835

  • Add ViewColumn.Modal (-4) to the API enum
  • Map it to MODAL_GROUP in extHostTypeConverters
  • Add unit tests for the new ViewColumn value

Test Plan

  • Unit tests pass (extHostTypeConverters.test.ts)
  • TypeScript compilation clean
  • Manual: test extension using ViewColumn.Modal opens editor in modal overlay
Expose.Modal.View.via.Extension.API.mp4

@MarlzRana Marlin Ranasinghe (MarlzRana) changed the title Expose ViewColumn.Modal in extension API (#307835) feat: Expose ViewColumn.Modal in extension API Apr 4, 2026
@MarlzRana

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

…l-view-via-extensions-api

# Conflicts:
#	src/vs/workbench/api/test/common/extHostTypeConverters.test.ts
Copilot AI balanced review requested due to automatic review settings August 15, 2026 22:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new ViewColumn.Modal symbolic editor column to support opening editors in a modal overlay, and wires it through extension-host type conversion with test coverage.

Changes:

  • Introduce ViewColumn.Modal = -4 in VS Code API typings (vscode.d.ts) and extension-host types.
  • Update ViewColumn.from(...) conversion to map Modal to MODAL_GROUP.
  • Add unit tests verifying ViewColumn conversions, including the new modal behavior.

Reviewed changes

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

File Description
src/vscode-dts/vscode.d.ts Adds the public API typing and documentation for ViewColumn.Modal.
src/vs/workbench/api/common/extHostTypes.ts Adds Modal to the extension-host ViewColumn enum.
src/vs/workbench/api/common/extHostTypeConverters.ts Maps ViewColumn.Modal to the workbench MODAL_GROUP for editor opening.
src/vs/workbench/api/test/common/extHostTypeConverters.test.ts Adds tests covering ViewColumn.from/to, including the new modal mapping.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gjsjohnmurray

Copy link
Copy Markdown
Contributor

Benjamin Christopher Simmonds (@benibenj) is there any prospect of this landing? I'm guessing the team may want it initially gated as proposed API.

This branch has not been deployed

No deployments
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.

API: Expose ViewColumn.Modal to allow extensions to open editors in modal overlay

6 participants