Represents an extension.
To get an instance of an Extension
use {@link extensions.getExtension getExtension}.
Represents an extension. To get an instance of an `Extension` use {@link extensions.getExtension getExtension}.
(activate extension)
Activates this extension and returns its public API.
Returns: Thenable<T>
- A promise that will resolve when this extension has been activated.
Activates this extension and returns its public API. **Returns:** `Thenable<T>` - A promise that will resolve when this extension has been activated.
(active? extension)
true
if the extension has been activated.
Returns: boolean
`true` if the extension has been activated. **Returns:** `boolean`
(exports extension)
The public API exported by this extension (return value of activate
).
It is an invalid action to access this field before this extension has been activated.
Returns: T
The public API exported by this extension (return value of `activate`). It is an invalid action to access this field before this extension has been activated. **Returns:** `T`
(extension-kind extension)
The extension kind describes if an extension runs where the UI runs
or if an extension runs where the remote extension host runs. The extension kind
is defined in the package.json
-file of extensions but can also be refined
via the remote.extensionKind
-setting. When no remote extension host exists,
the value is {@linkcode ExtensionKind.UI }.
Returns: ExtensionKind
The extension kind describes if an extension runs where the UI runs or if an extension runs where the remote extension host runs. The extension kind is defined in the `package.json`-file of extensions but can also be refined via the `remote.extensionKind`-setting. When no remote extension host exists, the value is {@linkcode ExtensionKind.UI }. **Returns:** `ExtensionKind`
(extension-path extension)
The absolute file path of the directory containing this extension. Shorthand notation for {@link Extension.extensionUri Extension.extensionUri.fsPath} (independent of the uri scheme).
Returns: string
The absolute file path of the directory containing this extension. Shorthand notation for {@link Extension.extensionUri Extension.extensionUri.fsPath} (independent of the uri scheme). **Returns:** `string`
(extension-uri extension)
The uri of the directory containing the extension.
Returns: Uri
The uri of the directory containing the extension. **Returns:** `Uri`
(id extension)
The canonical extension identifier in the form of: publisher.name
.
Returns: string
The canonical extension identifier in the form of: `publisher.name`. **Returns:** `string`
(package-json extension)
The parsed contents of the extension's package.json.
Returns: any
The parsed contents of the extension's package.json. **Returns:** `any`
(set-extension-kind! extension value)
The extension kind describes if an extension runs where the UI runs
or if an extension runs where the remote extension host runs. The extension kind
is defined in the package.json
-file of extensions but can also be refined
via the remote.extensionKind
-setting. When no remote extension host exists,
the value is {@linkcode ExtensionKind.UI }.
The extension kind describes if an extension runs where the UI runs or if an extension runs where the remote extension host runs. The extension kind is defined in the `package.json`-file of extensions but can also be refined via the `remote.extensionKind`-setting. When no remote extension host exists, the value is {@linkcode ExtensionKind.UI }.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close