The currently active color theme as configured in the settings. The active
theme can be changed via the workbench.colorTheme
setting.
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.
The currently opened terminals 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 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.
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.
Create new terminal with predefined options.
Creates a pseudo where an extension controls its input and output.
PseudoTerminalOptions.
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 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 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 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 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.
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.
Plugins 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
.
Type of the webview panel that can be serialized.
Webview serializer.
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.
PromiseLike 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.
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.
Shows a selection list with multiple selection allowed.
Shows a selection list.
Shows a selection list with multiple selection allowed.
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.
(#TextDocumentShowOptions) 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.
(#TextDocumentShowOptions) 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.
Common namespace for dealing with window and editor, showing messages and user input.