Interface: Extension<T>
Defined in: packages/extension-api/src/extension-api.d.ts:210
Represents an extension.
To get an instance of an Extension use getExtension.
Type Parameters
T
T
Properties
exports
readonlyexports:T
Defined in: packages/extension-api/src/extension-api.d.ts:237
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.
extensionPath
readonlyextensionPath:string
Defined in: packages/extension-api/src/extension-api.d.ts:225
The absolute file path of the directory containing this extension. Shorthand notation for Extension.extensionUri.fsPath (independent of the uri scheme).
extensionUri
readonlyextensionUri:Uri
Defined in: packages/extension-api/src/extension-api.d.ts:219
The uri of the directory containing the extension.
id
readonlyid:string
Defined in: packages/extension-api/src/extension-api.d.ts:214
The canonical extension identifier in the form of: publisher.name.
packageJSON
readonlypackageJSON:any
Defined in: packages/extension-api/src/extension-api.d.ts:231
The parsed contents of the extension's package.json.