window top-level property

VSCodeWindow get window

VS Code window API.

Provides window-related operations:

  • Show messages (information, warning, error)
  • Quick pick dialogs
  • Input boxes
  • Text editors
  • Terminals
  • Progress indicators

Example:

await window.showInformationMessage('Hello!');
final choice = await window.showQuickPick(['Option 1', 'Option 2']);

Implementation

VSCodeWindow get window => VSCode.instance.window;