The currently active notebook editor or undefined
. The active editor is the one
that currently has focus or, when none has focus, the one that has changed
input most recently.
The currently active terminal or undefined. The active terminal is the one that currently has focus or most recently had focus.
The currently active editor or undefined
. The active editor is the one
that currently has focus or, when none has focus, the one that has changed
input most recently.
Represents the current window's state.
Represents the grid widget within the main editor area
The currently opened terminals or an empty array.
The currently visible notebook editors or an empty array.
The currently visible editors or an empty array.
Creates a InputBox to let the user enter some text input.
Note that in many cases the more convenient window.showInputBox is easier to use. window.createInputBox should be used when window.showInputBox does not offer the required flexibility.
A new InputBox.
Create a new output channel with the given name.
String which will be used to represent the channel in the UI.
Creates a new log output channel with the given name.
Human-readable string which will be used to represent the channel in the UI.
Options for the log output channel.
Creates a QuickPick to let the user pick an item from a list of items of type T.
Note that in many cases the more convenient window.showQuickPick is easier to use. window.createQuickPick should be used when window.showQuickPick does not offer the required flexibility.
A new QuickPick.
Creates a status bar item.
The alignment of the item.
The priority of the item. Higher values mean the item should be shown more to the left.
A new status bar item.
Creates a status bar item.
The unique identifier of the item.
The alignment of the item.
The priority of the item. Higher values mean the item should be shown more to the left.
A new status bar item.
Create new terminal.
terminal name to display on the UI.
path to the executable shell. For example "/bin/bash", "bash", "sh".
arguments to configure executable shell. For example ["-l"] - run shell without login.
A new Terminal.
Create new terminal with predefined options.
ExtensionTerminalOptions.
A new Terminal.
Creates a pseudo where an extension controls its input and output.
PseudoTerminalOptions.
A new Terminal.
Creates a pseudo where an extension controls its input and output.
ExtensionTerminalOptions.
A new Terminal.
Create a TextEditorDecorationType that can be used to add decorations to text editors.
Rendering options for the decoration type.
A new decoration type instance.
Create a TreeView for the view contributed using the extension point views
.
Id of the view contributed using the extension point views
.
Options object to provide TreeDataProvider for the view.
a TreeView.
Create and show a new webview panel.
Identifies the type of the webview panel.
Title of the panel.
where webview panel will be reside. If preserveFocus is set, the new webview will not take focus.
Settings for the new panel.
New webview panel.
An event which fires when the active color theme is changed or has changes.
An Event which fires when the active notebook editor
has changed. Note that the event also fires when the active editor changes
to undefined
.
An event which fires when the active terminal has changed.
Note that the event also fires when the active terminal changes to undefined
.
An event which fires when the active editor
has changed. Note that the event also fires when the active editor changes
to undefined
.
An Event which fires when the notebook editor selections have changed.
An Event which fires when the notebook editor visible ranges have changed.
An Event which fires when a terminal's state has changed.
An event which fires when the options of an editor have changed.
An event which fires when the selection in an editor has changed.
An event which fires when the view column of an editor has changed.
An event which fires when the selection in an editor has changed.
An Event which fires when the visible notebook editors has changed.
An event which fires when the array of visible editors has changed.
An event which fires when the focus state of the current window changes. The value of the event represents whether the window is focused.
Event which fires when terminal did closed. Event value contains closed terminal definition.
An event which fires when a terminal has been created, either through the createTerminal API or commands.
Register a provider for custom editors for the viewType
contributed by the customEditors
extension point.
When a custom editor is opened, Theia fires an onCustomEditor:viewType
activation event. Your extension
must register a CustomTextEditorProvider
, CustomReadonlyEditorProvider
,
CustomEditorProvider
for viewType
as part of activation.
Unique identifier for the custom editor provider. This should match the viewType
from the
customEditors
contribution point.
Provider that resolves custom editors.
Options for the provider.
Only applies to CustomReadonlyEditorProvider | CustomEditorProvider
.
Indicates that the provider allows multiple editor instances to be open at the same time for the same resource.
By default, Theia only allows one editor instance to be open at a time for each resource. If the user tries to open a second editor instance for the resource, the first one is instead moved to where the second one was to be opened.
When supportsMultipleEditorsPerDocument
is enabled, users can split and create copies of the custom
editor. In this case, the custom editor must make sure it can properly synchronize the states of all
editor instances for a resource so that they are consistent.
Content settings for the webview panels created for this custom editor.
Disposable that unregisters the provider.
Register a new ExternalUriOpener
.
When a uri is about to be opened, an onOpenExternalUri:SCHEME
activation event is fired.
Unique id of the opener, such as myExtension.browserPreview
. This is used in settings
and commands to identify the opener.
Opener to register.
Additional information about the opener.
Disposable that unregisters the opener.
Register a file decoration provider.
A disposable that unregisters the provider.
Register provider that enables the detection and handling of links within the terminal.
The provider that provides the terminal links.
Disposable that unregisters the provider.
Registers a provider for a contributed terminal profile.
The ID of the contributed terminal profile.
The terminal profile provider.
A terminal quick fix provider
A Disposable that un-registers the provider when being disposed
Register a TreeDataProvider for the view contributed using the extension point views
.
This will allow you to contribute data to the TreeView and update if the data changes.
Note: To get access to the TreeView and perform operations on it, use createTreeView.
Id of the view contributed using the extension point views
.
A TreeDataProvider that provides tree data for the view
Registers a uri handler capable of handling system-wide uris. 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:
my.extension
);For example, if the my.extension
extension registers a uri handler, it will only
be allowed to handle uris with the prefix product-name://my.extension
.
An extension can only register a single uri handler in its entire activation lifetime.
onUri
that fires when a uri directed for
the current extension is about to be handled.The uri handler to register for this extension.
Registers a webview panel serializer.
Extensions that support reviving should have an "onWebviewPanel:viewType"
activation event and
make sure that registerWebviewPanelSerializer is called during activation.
Only a single serializer may be registered at a time for a given viewType
.
Content settings for the webview created for this view.
Controls if the webview element itself (iframe) is kept around even when the view is no longer visible.
Normally the webview's html context is created when the view becomes visible
and destroyed when it is hidden. Extensions that have complex state
or UI can set the retainContextWhenHidden
to make the editor keep the webview
context around, even when the webview moves to a background tab. When a webview using
retainContextWhenHidden
becomes hidden, its scripts and other dynamic content are suspended.
When the view becomes visible again, the context is automatically restored
in the exact same state it was in originally. You cannot send messages to a
hidden webview, even with retainContextWhenHidden
enabled.
retainContextWhenHidden
has a high memory overhead and should only be used if
your view's context cannot be quickly saved and restored.
Set a message to the status bar.
The message to show, supports icon substitution as in status bar.
A disposable which hides the status bar message.
Set a message to the status bar.
The message to show, supports icon substitution as in status bar.
Timeout in milliseconds after which the message will be disposed.
A disposable which hides the status bar message.
Set a message to the status bar.
The message to show, supports icon substitution as in status bar.
Thenable on which completion (resolve or reject) the message will be disposed.
A disposable which hides the status bar message.
Show an error message.
a message to show.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an error message.
a message to show.
Configures the behaviour of the message.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an error message.
a message to show.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an error message.
a message to show.
Configures the behaviour of the message.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an information message.
a message to show.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an information message.
a message to show.
Configures the behaviour of the message.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an information message.
a message to show.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show an information message.
a message to show.
Configures the behaviour of the message.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Opens an input box to ask the user for input.
The returned value will be undefined
if the input box was canceled (e.g. pressing ESC). Otherwise the
returned value will be the string typed by the user or an empty string if the user did not type
anything but dismissed the input box with OK.
Configures the behavior of the input box.
A token that can be used to signal cancellation.
A promise that resolves to a string the user provided or to undefined
in case of dismissal.
Show the given NotebookDocument in a notebook editor.
A text document to be shown.
Editor options to configure the behavior of showing the notebook editor.
A promise that resolves to an notebook editor.
Shows a file open dialog to the user which allows to select a file for opening-purposes.
Options that control the dialog.
A promise that resolves to the selected resources or undefined
.
Shows a selection list.
An array of strings, or a promise that resolves to an array of strings.
Configures the behavior of the selection list.
A token that can be used to signal cancellation.
A promise that resolves to the selection or undefined
.
Shows a selection list allowing multiple selections.
An array of strings, or a promise that resolves to an array of strings.
Configures the behavior of the selection list.
A token that can be used to signal cancellation.
A promise that resolves to the selected items or undefined
.
Shows a selection list.
An array of items, or a promise that resolves to an array of items.
Configures the behavior of the selection list.
A token that can be used to signal cancellation.
A promise that resolves to the selected item or undefined
.
Shows a selection list allowing multiple selections.
An array of items, or a promise that resolves to an array of items.
Configures the behavior of the selection list.
A token that can be used to signal cancellation.
A promise that resolves to the selected items or undefined
.
Shows a file save dialog to the user which allows to select a file for saving-purposes.
Options that control the dialog.
A promise that resolves to the selected resource or undefined
.
Show the given document in a text editor. A column can be provided to control where the editor is being shown. Might change the active editor.
A text document to be shown.
A view column in which the editor should be shown. The default is the active, other values
are adjusted to be Min(column, columnCount + 1)
, the active-column is not adjusted. Use ViewColumn.Beside
to open the editor to the side of the currently active one.
When true
the editor will not take focus.
A promise that resolves to an editor.
Show the given document in a text editor. Options can be provided to control options of the editor is being shown. Might change the active editor.
A text document to be shown.
Editor options to configure the behavior of showing the editor.
A promise that resolves to an editor.
A short-hand for openTextDocument(uri).then(document => showTextDocument(document, options))
.
A resource identifier.
Editor options to configure the behavior of showing the editor.
A promise that resolves to an editor.
Shows a file upload dialog to the user which allows to upload files for various purposes.
Options, that control the dialog.
A promise that resolves the paths of uploaded files or undefined
.
Show a warning message.
a message to show.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show a warning message.
a message to show.
Configures the behaviour of the message.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show a warning message.
a message to show.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Show a warning message.
a message to show.
Configures the behaviour of the message.
A set of items that will be rendered as actions in the message.
A promise that resolves to the selected item or undefined
when being dismissed.
Shows a selection list of workspace folders to pick from.
Returns undefined
if no folder is open.
Configures the behavior of the workspace folder list.
A promise that resolves to the workspace folder or undefined
.
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 ProgressOptions
.
A callback returning a promise. Progress state can be reported with the provided progress-object.
To report discrete progress, use increment
to indicate how much work has been completed. Each call with
a increment
value will be summed up and reflected as overall progress until 100% is reached (a value of
e.g. 10
accounts for 10%
of work done).
Note that currently only ProgressLocation.Notification
is capable of showing discrete progress.
To monitor if the operation has been cancelled by the user, use the provided CancellationToken
.
Note that currently only ProgressLocation.Notification
is supporting to show a cancel button to cancel the
long running operation.
The thenable the task-callback returned.
Show progress in the Source Control viewlet while running the given callback and while its returned promise isn't resolve or rejected.
A callback returning a promise. Progress increments can be reported with the provided Progress-object.
The thenable the task did return.
The currently active color theme as configured in the settings. The active theme can be changed via the
workbench.colorTheme
setting.