$ModuleWindow$Typings extension
Properties
- activeColorTheme → ColorTheme
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently active color theme as configured in the settings. The active theme can be changed via theworkbench.colorTheme
setting.no setter - activeNotebookEditor → NotebookEditor?
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently active {@link NotebookEditornotebook editor} orundefined
. The active editor is the one that currently has focus or, when none has focus, the one that has changed input most recently.no setter - activeTerminal → Terminal?
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently active terminal orundefined
. The active terminal is the one that currently has focus or most recently had focus.no setter - activeTextEditor → TextEditor?
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently active editor orundefined
. The active editor is the one that currently has focus or, when none has focus, the one that has changed input most recently.no setter - createOutputChannel → ({OutputChannel Function(String name, [String? languageId]) $1, LogOutputChannel Function(String name, IInline48 options) $2})
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2no setter - createStatusBarItem → ({StatusBarItem Function([StatusBarAlignment? alignment, num? priority]) $1, StatusBarItem Function(String id, [StatusBarAlignment? alignment, num? priority]) $2})
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2no setter - createTerminal → ({Terminal Function(TerminalOptions options) $1, Terminal Function(ExtensionTerminalOptions options) $2, Terminal Function([String? name, String? shellPath, Object? shellArgs]) $3})
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2, $3no setter -
onDidChangeActiveColorTheme
→ Event<
ColorTheme> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the active color theme is changed or has changes.no setter -
onDidChangeActiveNotebookEditor
→ Event<
NotebookEditor?> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the {@link window.activeNotebookEditoractive notebook editor} has changed. Note that the event also fires when the active editor changes toundefined
.no setter -
onDidChangeActiveTerminal
→ Event<
Terminal?> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the {@link window.activeTerminalactive terminal} has changed. Note that the event also fires when the active terminal changes toundefined
.no setter -
onDidChangeActiveTextEditor
→ Event<
TextEditor?> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the {@link window.activeTextEditoractive editor} has changed. Note that the event also fires when the active editor changes toundefined
.no setter -
onDidChangeNotebookEditorSelection
→ Event<
NotebookEditorSelectionChangeEvent> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the {@link NotebookEditor.selectionsnotebook editor selections} have changed.no setter -
onDidChangeNotebookEditorVisibleRanges
→ Event<
NotebookEditorVisibleRangesChangeEvent> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the {@link NotebookEditor.visibleRangesnotebook editor visible ranges} have changed.no setter -
onDidChangeTerminalState
→ Event<
Terminal> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when a {@link Terminal.stateterminal's state} has changed.no setter -
onDidChangeTextEditorOptions
→ Event<
TextEditorOptionsChangeEvent> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the options of an editor have changed.no setter -
onDidChangeTextEditorSelection
→ Event<
TextEditorSelectionChangeEvent> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the selection in an editor has changed.no setter -
onDidChangeTextEditorViewColumn
→ Event<
TextEditorViewColumnChangeEvent> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the view column of an editor has changed.no setter -
onDidChangeTextEditorVisibleRanges
→ Event<
TextEditorVisibleRangesChangeEvent> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the visible ranges of an editor has changed.no setter -
onDidChangeVisibleNotebookEditors
→ Event<
List< NotebookEditor> > -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the {@link window.visibleNotebookEditorsvisible notebook editors} has changed.no setter -
onDidChangeVisibleTextEditors
→ Event<
List< TextEditor> > -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the array of {@link window.visibleTextEditorsvisible editors} has changed.no setter -
onDidChangeWindowState
→ Event<
WindowState> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when the focus state of the current window changes. The value of the event represents whether the window is focused.no setter -
onDidCloseTerminal
→ Event<
Terminal> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when a terminal is disposed.no setter -
onDidOpenTerminal
→ Event<
Terminal> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
An {@link Event} which fires when a terminal has been created, either through the {@link window.createTerminalcreateTerminal} API or commands.no setter - setStatusBarMessage → ({Disposable Function(String text, num hideAfterTimeout) $1, Disposable Function(String text, Future hideWhenDone) $2})
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2no setter -
showErrorMessage
→ ({Future Function<
T extends String>(String message, [Iterable? items]) $1, Future Function<T extends String>(String message, MessageOptions options, [Iterable? items]) $2, Future Function<T extends MessageItem>(String message, MessageOptions options, [Iterable? items]) $3}) -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2, $3no setter -
showInformationMessage
→ ({Future Function<
T extends String>(String message, [Iterable? items]) $1, Future Function<T extends String>(String message, MessageOptions options, [Iterable? items]) $2, Future Function<T extends MessageItem>(String message, MessageOptions options, [Iterable? items]) $3}) -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2, $3no setter -
showQuickPick
→ ({Future Function(Object items, Object options, [CancellationToken? token]) $1, Future Function(Object items, [QuickPickOptions? options, CancellationToken? token]) $2, Future Function<
T extends QuickPickItem>(Object items, Object options, [CancellationToken? token]) $3, Future Function<T extends QuickPickItem>(Object items, [QuickPickOptions? options, CancellationToken? token]) $4}) -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2, $3, $4no setter - showTextDocument → ({Future Function(TextDocument document, [TextDocumentShowOptions? options]) $1, Future Function(Uri uri, [TextDocumentShowOptions? options]) $2, Future Function(TextDocument document, [ViewColumn? column, bool? preserveFocus]) $3})
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2, $3no setter -
showWarningMessage
→ ({Future Function<
T extends String>(String message, [Iterable? items]) $1, Future Function<T extends String>(String message, MessageOptions options, [Iterable? items]) $2, Future Function<T extends MessageItem>(String message, MessageOptions options, [Iterable? items]) $3}) -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Overload accessor: $1, $2, $3no setter - state → WindowState
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Represents the current window's state.no setter - tabGroups → TabGroups
-
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Represents the grid widget within the main editor areano setter -
terminals
→ List<
Terminal> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently opened terminals or an empty array.no setter -
visibleNotebookEditors
→ List<
NotebookEditor> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently visible {@link NotebookEditornotebook editors} or an empty array.no setter -
visibleTextEditors
→ List<
TextEditor> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
The currently visible editors or an empty array.no setter
Methods
-
createInputBox(
) → InputBox -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Creates a {@link InputBox} to let the user enter some text input. -
createQuickPick<
T extends QuickPickItem> () → QuickPick< T> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Creates a {@link QuickPick} to let the user pick an item from a list of items of type T. -
createTextEditorDecorationType(
DecorationRenderOptions options) → TextEditorDecorationType -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Create a TextEditorDecorationType that can be used to add decorations to text editors. -
createTreeView<
T> (String viewId, TreeViewOptions< T> options) → TreeView<T> -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Create a {@link TreeView} for the view contributed using the extension pointviews
. -
createWebviewPanel(
String viewType, String title, Object showOptions, [Object? options]) → WebviewPanel -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Create and show a new webview panel. -
registerCustomEditorProvider(
String viewType, Object provider, [IInline53? options]) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Register a provider for custom editors for theviewType
contributed by thecustomEditors
extension point. -
registerFileDecorationProvider(
FileDecorationProvider provider) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Register a file decoration provider. -
registerTerminalLinkProvider(
TerminalLinkProvider< TerminalLink> provider) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Register provider that enables the detection and handling of links within the terminal. -
registerTerminalProfileProvider(
String id, TerminalProfileProvider provider) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Registers a provider for a contributed terminal profile. -
registerTreeDataProvider<
T> (String viewId, TreeDataProvider< T> treeDataProvider) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Register a {@link TreeDataProvider} for the view contributed using the extension pointviews
. This will allow you to contribute data to the {@link TreeView} and update if the data changes. -
registerUriHandler(
UriHandler handler) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Registers a {@link UriHandleruri handler} capable of handling system-wide {@link Uriuris}. In case there are multiple windows open, the topmost window will handle the uri. A uri handler is scoped to the extension it is contributed from; it will only be able to handle uris which are directed to the extension itself. A uri must respect the following rules: -
registerWebviewPanelSerializer(
String viewType, WebviewPanelSerializer< Object?> serializer) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Registers a webview panel serializer. -
registerWebviewViewProvider(
String viewId, WebviewViewProvider provider, [IInline51? options]) → Disposable -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Register a new provider for webview views. -
showInputBox(
[InputBoxOptions? options, CancellationToken? token]) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Opens an input box to ask the user for input. -
showNotebookDocument(
NotebookDocument document, [NotebookDocumentShowOptions? options]) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Show the given {@link NotebookDocument} in a {@link NotebookEditornotebook editor}. -
showOpenDialog(
[OpenDialogOptions? options]) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Shows a file open dialog to the user which allows to select a file for opening-purposes. -
showSaveDialog(
[SaveDialogOptions? options]) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Shows a file save dialog to the user which allows to select a file for saving-purposes. -
showWorkspaceFolderPick(
[WorkspaceFolderPickOptions? options]) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Shows a selection list of {@link workspace.workspaceFoldersworkspace folders} to pick from. Returnsundefined
if no folder is open. -
withProgress<
R> (ProgressOptions options, Future task(Progress, CancellationToken)) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Show progress in the editor. Progress is shown while running the given callback and while the promise it returned isn't resolved nor rejected. The location at which progress should show (and other details) is defined via the passed {@linkcode ProgressOptions}. -
withScmProgress<
R> (Future task(Progress< num> )) → Future -
Available on $ModuleWindow, provided by the $ModuleWindow$Typings extension
Show progress in the Source Control viewlet while running the given callback and while its returned promise isn't resolve or rejected.