The application name of the editor, like 'Eclipse Theia'.
The application root folder from which the editor is running.
The system clipboard.
Represents the preferred user-language, like
A unique identifier for the computer.
A unique identifier for the current session. Changes each time the editor is started.
The detected default shell for the extension host.
The custom uri scheme the editor registers to in the operating system.
Resolves an external uri, such as a
https: link, from where the extension is running to a
uri to the same resource on the client machine.
This is a no-op if the extension is running on the client machine. Currently only supports
If the extension is running remotely, this function automatically establishes a port forwarding tunnel
from the local machine to
target on the remote and returns a local uri to the tunnel. The lifetime of
the port fowarding tunnel is managed by VS Code and the tunnel can be closed by the user.
Extensions should not cache the result of
asExternalUri as the resolved uri may become invalid due to
a system or user action — for example, in remote cases, a user may close a port forwardng tunnel
that was opened by
Note that uris passed through
openExternal are automatically resolved and you should not call
A uri that can be used on the client machine.
Gets environment variable value by name.
name of environment variable to get
value of the given environment variable name or undefined if there is no such variable.
Gets query parameter value by name.
name of query parameter to get.
value of the given query parameter or undefined if there is no such variable.
Returns all query parameters of current IDE.
Opens an external item, e.g. a http(s) or mailto-link, using the default application.
showTextDocument is the right
way to open a text document inside the editor, not this function.
The uri that should be opened.
A promise indicating if open was successful.