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

    Interface Application

    A compiled plan wired to platform capabilities, ready for Extension Host activation.

    One instance represents one Application lifetime and is not restartable after it reaches a terminal Host state. activate and deactivate are the intended extension entry-point calls; all framework cleanup flows through the Host.

    interface Application {
        commands: CommandExecutor;
        host: ApplicationHost;
        activate(context: ExtensionHostContext): Promise<unknown>;
        deactivate(): Promise<void>;
        inspect(): ApplicationInspection;
    }
    Index
    commands: CommandExecutor

    Typed invocation of commands registered with a CommandContract.

    The authoritative Application lifecycle and ownership boundary.

    • Registers the synchronous shutdown failsafe and starts the Host. Call this once from the extension's activate entry point; a stopped or failed Application cannot be activated again.

      Parameters

      Returns Promise<unknown>

      when activation fails, after the Host has attempted to roll back framework-owned registrations and Resources. Cleanup failures are also reported through diagnostics.

    • Stops the Host through the single cleanup path. Idempotent and never rejects; cleanup failures are emitted as diagnostics.

      Returns Promise<void>