Interface: IExtension
model.IExtension
The interface of extension, there need every extension to implement this interface
Table of contents
Properties
Methods
Properties
categories
• Optional
categories: IExtensionType
[]
The categories of extension
Defined in
contributes
• Optional
contributes: IContribute
The main file path of extension Extension system will load the extension by this file
Defined in
description
• Optional
description: string
The description of extension
Defined in
disable
• Optional
disable: boolean
Whether disable current extension, the extension default status is enable
Defined in
displayName
• Optional
displayName: string
The display name of extension
Defined in
extensionKind
• Optional
extensionKind: IExtensionType
[]
The kind of extension
Defined in
icon
• Optional
icon: string
| Element
The Icon of extension
Defined in
id
• id: UniqueId
The ID of extension required
Defined in
main
• Optional
main: string
The entry of extension
Defined in
name
• name: string
The name of extension
Defined in
path
• Optional
path: string
The path of extension
Defined in
publisher
• Optional
publisher: string
The publisher of extension
Defined in
version
• Optional
version: string
The version of extension
Defined in
Methods
activate
▸ activate(appContext
, extensionContext
): void
Do something you want when the Extension is activating.
The ExtensionService will call the activate
method after
added the Extension instance.
Parameters
Name | Type | Description |
---|---|---|
appContext | AppContext | The application context |
extensionContext | ExtensionContext | The extension context |
Returns
void
Defined in
dispose
▸ dispose(appContext
): void
Do something when the Extension disposing. For example, you can recover the UI state, or remove the Objects in memory.
Parameters
Name | Type | Description |
---|---|---|
appContext | AppContext | The application context |
Returns
void