@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface DefineExtensionOptionsWithExports<TMap, TApi>

    defineExtension options for an extension that publishes an API.

    Separate from DefineExtensionOptions rather than an intersection with it: TypeScript infers TMap and TApi from a parameter it can read directly, and stops inferring once the declaration is behind an &.

    interface DefineExtensionOptionsWithExports<TMap extends ServiceMap, TApi> {
        exports: ExtensionExports<TMap, TApi>;
        modules: readonly ModuleDefinition[];
        name: string;
        onDiagnostic?: (diagnostic: HostDiagnostic) => void;
        shutdown?: { timeoutMs?: number };
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    modules: readonly ModuleDefinition[]

    Immutable modules in binding order.

    The order is observable during activation and reverse-order teardown, so treat a reorder as a lifecycle change rather than cosmetic sorting.

    name: string

    Human-readable application name; also used for the framework log channel.

    onDiagnostic?: (diagnostic: HostDiagnostic) => void

    Receives lifecycle diagnostics synchronously as the host emits them. Observer exceptions are ignored. Keep the callback lightweight because it is not awaited and runs on lifecycle/operation paths.

    shutdown?: { timeoutMs?: number }

    Shutdown policy. Omit it to use the host's conservative default budget.