Interface: ExtensionContributes
Defined in: Extensions/ExtensionManifest.ts:154
Contribution declarations declared statically in the manifest. Each is the
declarative twin of an api.ui.register* call — the host pre-registers
them at install time so activation events tied to a contribution work even
before the worker spawns.
Properties
apiExports?
optionalapiExports?:ContributedApiExport[]
Defined in: Extensions/ExtensionManifest.ts:175
bookProviders?
optionalbookProviders?:BookProviderDescriptor[]
Defined in: Extensions/ExtensionManifest.ts:184
commands?
optionalcommands?:ContributedCommand[]
Defined in: Extensions/ExtensionManifest.ts:155
commentaryProviders?
optionalcommentaryProviders?:CommentaryProviderDescriptor[]
Defined in: Extensions/ExtensionManifest.ts:182
Provider descriptors statically declared in the manifest. Mirrors what an
extension would otherwise call via api.commentary.registerProvider /
api.dictionary.registerProvider / api.book.registerProvider so the
host can pre-register the provider before the worker starts.
configuration?
optionalconfiguration?:ContributedConfiguration
Defined in: Extensions/ExtensionManifest.ts:163
JSON Schema (draft-07) defining user-editable settings. Either an inline
schema object or a $ref to a schema file inside the package.
dictionaryProviders?
optionaldictionaryProviders?:DictionaryProviderDescriptor[]
Defined in: Extensions/ExtensionManifest.ts:183
displayModes?
optionaldisplayModes?:DisplayModeDescriptor[]
Defined in: Extensions/ExtensionManifest.ts:169
fileImporters?
optionalfileImporters?:ContributedFileImporter[]
Defined in: Extensions/ExtensionManifest.ts:174
fonts?
optionalfonts?:ContributedFont[]
Defined in: Extensions/ExtensionManifest.ts:171
icons?
optionalicons?:ContributedIcon[]
Defined in: Extensions/ExtensionManifest.ts:172
menus?
optionalmenus?:Record<string,ContributedMenuItem[]>
Defined in: Extensions/ExtensionManifest.ts:158
Keyed by ContextMenuTarget; values are arrays of menu item refs.
panelTypes?
optionalpanelTypes?:ExtensionPanelTypeDef[]
Defined in: Extensions/ExtensionManifest.ts:156
providers?
optionalproviders?:Record<string,string>
Defined in: Extensions/ExtensionManifest.ts:168
Map from provider role ID to the in-extension provider key the user can pick. The host shows these in Preferences → Extensions → Provider Roles.
styles?
optionalstyles?:ContributedStyle[]
Defined in: Extensions/ExtensionManifest.ts:173
themes?
optionalthemes?:ContributedTheme[]
Defined in: Extensions/ExtensionManifest.ts:170