Skip to main content

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?

optional apiExports?: ContributedApiExport[]

Defined in: Extensions/ExtensionManifest.ts:175


bookProviders?

optional bookProviders?: BookProviderDescriptor[]

Defined in: Extensions/ExtensionManifest.ts:184


commands?

optional commands?: ContributedCommand[]

Defined in: Extensions/ExtensionManifest.ts:155


commentaryProviders?

optional commentaryProviders?: 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?

optional configuration?: 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?

optional dictionaryProviders?: DictionaryProviderDescriptor[]

Defined in: Extensions/ExtensionManifest.ts:183


displayModes?

optional displayModes?: DisplayModeDescriptor[]

Defined in: Extensions/ExtensionManifest.ts:169


fileImporters?

optional fileImporters?: ContributedFileImporter[]

Defined in: Extensions/ExtensionManifest.ts:174


fonts?

optional fonts?: ContributedFont[]

Defined in: Extensions/ExtensionManifest.ts:171


icons?

optional icons?: ContributedIcon[]

Defined in: Extensions/ExtensionManifest.ts:172


optional menus?: Record<string, ContributedMenuItem[]>

Defined in: Extensions/ExtensionManifest.ts:158

Keyed by ContextMenuTarget; values are arrays of menu item refs.


panelTypes?

optional panelTypes?: ExtensionPanelTypeDef[]

Defined in: Extensions/ExtensionManifest.ts:156


providers?

optional providers?: 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?

optional styles?: ContributedStyle[]

Defined in: Extensions/ExtensionManifest.ts:173


themes?

optional themes?: ContributedTheme[]

Defined in: Extensions/ExtensionManifest.ts:170