Skip to main content

Interface: Extension<T>

Represents an extension.

To get an instance of an Extension use getExtension.

Type parameters

T

Properties

exports

readonly exports: 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.

Source

packages/extension-api/src/extension-api.d.ts:205


extensionPath

readonly extensionPath: string

The absolute file path of the directory containing this extension. Shorthand notation for Extension.extensionUri.fsPath (independent of the uri scheme).

Source

packages/extension-api/src/extension-api.d.ts:193


extensionUri

readonly extensionUri: Uri

The uri of the directory containing the extension.

Source

packages/extension-api/src/extension-api.d.ts:187


id

readonly id: string

The canonical extension identifier in the form of: publisher.name.

Source

packages/extension-api/src/extension-api.d.ts:182


packageJSON

readonly packageJSON: any

The parsed contents of the extension's package.json.

Source

packages/extension-api/src/extension-api.d.ts:199