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

    Interface TestHost

    A production plan running on observable fake capabilities.

    Recording collections such as status items, tree views and panels retain disposed records so tests can inspect history. Consult each fake's documented disposed/registered state; not every fake represents cleanup by removing an entry from an array.

    interface TestHost {
        application: Application;
        commands: FakeCommands;
        diagnostics: readonly HostDiagnostic[];
        editors: FakeEditor;
        environment: FakeEnvironment;
        events: readonly string[];
        fileWatchers: FakeFileWatchers;
        languageStatus: FakeLanguageStatus;
        localization: FakeLocalization;
        logs: RecordingLogSink;
        notifications: FakeNotifications;
        progress: FakeProgress;
        quickInput: FakeQuickInput;
        secrets: FakeSecrets;
        settings: FakeSettings;
        statusBar: FakeStatusBar;
        storage: FakeStorage;
        treeViews: FakeTreeViews;
        webviews: FakeWebviews;
        inspect(): ApplicationInspection;
        leaks(): LeakReport;
        start(): Promise<void>;
        stop(): Promise<void>;
    }
    Index
    application: Application

    The wired application.

    commands: FakeCommands

    The fake command capability the plan bound to.

    diagnostics: readonly HostDiagnostic[]

    Lifecycle and operation diagnostics, in order.

    editors: FakeEditor

    The fake in-memory document behind the Editors service.

    environment: FakeEnvironment

    The fake host environment runtime preflight reads.

    events: readonly string[]

    Diagnostic event names, in order. Convenient for ordering assertions.

    fileWatchers: FakeFileWatchers

    The fake native watchers the plan's file watchers subscribe to.

    languageStatus: FakeLanguageStatus

    The fake language status area the plan's items render on.

    localization: FakeLocalization

    The fake display language and bundle behind the Localization service.

    Everything the application logged.

    notifications: FakeNotifications

    The fake message surface behind the Notifications service.

    progress: FakeProgress

    The fake progress UI behind context.progress.

    quickInput: FakeQuickInput

    The fake quick input the QuickInput service resolves to.

    secrets: FakeSecrets

    The fake secret storage the plan's secret definitions read and write.

    settings: FakeSettings

    The fake settings capability the plan bound to.

    statusBar: FakeStatusBar

    The fake status bar the plan's items render on.

    storage: FakeStorage

    The fake persisted state the plan's storage definitions read and write.

    treeViews: FakeTreeViews

    The fake tree view registry the plan's views register into.

    webviews: FakeWebviews

    The fake webview host the plan's panels and views run on.

    • The same ownership, named rather than counted: the scope trees, the hosted services that are up, the operations that have not settled.

      leaks() answers "did anything survive stop()"; this answers "what, and whose is it". Reach for it when a leak assertion fails, or to assert that a specific module's scope is the one still holding something.

      Returns ApplicationInspection

    • Activates the already statically validated plan through the production host, including runtime preflight, module binding and the same synchronous subscription failsafe.

      Returns Promise<void>

    • Deactivates through the production stop path. Safe to call again after the first stop has settled; the underlying host owns idempotency.

      Returns Promise<void>