Skip to content

Test command to open a view with or without focus #247388

@alexr00

Description

@alexr00

Refs: #175129

Complexity: 2

Create Issue


Every view in VS Code which doesn't provide it's own "open" command will now have one generated with the format viewId.open. The command takes a property bag with preserveFocus as a property.

To test, you'll need to install an extension which provides a view.

Verify that you can run the command from an extension using the executeCommand extension API with the preserveFocus option. Example:

vscode.commands.executeCommand('myviewId.open', { preserveFocus: true });

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions