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.
Defined in
packages/extension-api/src/extension-api.d.ts:237
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).
Defined in
packages/extension-api/src/extension-api.d.ts:225
extensionUri
readonly
extensionUri:Uri
The uri of the directory containing the extension.
Defined in
packages/extension-api/src/extension-api.d.ts:219
id
readonly
id:string
The canonical extension identifier in the form of: publisher.name
.
Defined in
packages/extension-api/src/extension-api.d.ts:214
packageJSON
readonly
packageJSON:any
The parsed contents of the extension's package.json.