Interface: Extension<T>
Represents an extension.
To get an instance of an Extension use getExtension.
Type Parameters
• T
Properties
exports
readonlyexports: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:205
extensionPath
readonlyextensionPath: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:193
extensionUri
readonlyextensionUri:Uri
The uri of the directory containing the extension.
Defined in
packages/extension-api/src/extension-api.d.ts:187
id
readonlyid:string
The canonical extension identifier in the form of: publisher.name.
Defined in
packages/extension-api/src/extension-api.d.ts:182
packageJSON
readonlypackageJSON:any
The parsed contents of the extension's package.json.