Skip to content

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

@MarlzRana

Description

@MarlzRana

Feature Request

Problem

Extensions currently have no way to open editors in the modal overlay introduced with the workbench-modal-editor work. The ViewColumn enum only supports Active, Beside, and numbered columns.

Proposed Solution

Add a ViewColumn.Modal enum value (-4) that maps to MODAL_GROUP, allowing extensions to open editors in the modal overlay via showTextDocument and similar APIs:

vscode.window.showTextDocument(doc, { viewColumn: vscode.ViewColumn.Modal });

Related

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions