Interface: ICommandsApi
Defined in: Extensions/ExtensionApiTypes.ts:331
Thin proxy over Spec B's ICommandRegistry. The extension worker calls it;
the host translates each call into a commandRegistry.register({ ... handler: rpcCallback }) where rpcCallback issues a reverse RPC back into the
worker on invocation.
Aliases are intentionally absent — extensions handle their own aliases via their locale catalogs.
Methods
execute()
execute(
commandId,args?):Promise<unknown>
Defined in: Extensions/ExtensionApiTypes.ts:333
Parameters
commandId
string
args?
unknown
Returns
Promise<unknown>
register()
register(
cmd):Promise<DisposableHandle>
Defined in: Extensions/ExtensionApiTypes.ts:332
Parameters
cmd
Returns
Promise<DisposableHandle>