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

    Interface FakeNotifications

    A fake message capability that records what was shown and answers from a scripted queue.

    interface FakeNotifications {
        shown: readonly ShownNotification[];
        _failNext(error: Error): void;
        _respondWith(index: number | undefined): void;
        show(
            severity: NotificationSeverity,
            message: string,
            options: { detail?: string; modal?: boolean },
            actions: readonly NotificationActionLike[],
        ): Promise<number | undefined>;
    }

    Hierarchy

    • NotificationCapability
      • FakeNotifications
    Index
    shown: readonly ShownNotification[]

    Every message shown, in order.

    • Makes the next show reject, simulating a platform failure.

      Parameters

      • error: Error

      Returns void

    • Queues the answer for the next show: the index of the "clicked" action, or undefined for a dismissal. Unqueued shows resolve undefined.

      Parameters

      • index: number | undefined

      Returns void