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

    Interface ConfirmOptions

    interface ConfirmOptions {
        detail?: string;
        modal?: boolean;
        noText?: string;
        remember?: RememberedChoice;
        rememberText?: string;
        severity?: NotificationSeverity;
        yesText?: string;
    }
    Index
    detail?: string

    Detail text for a modal.

    modal?: boolean

    Show as a modal dialog (default: true).

    noText?: string

    Text for the negative button (default: English 'No'). Localize for user-facing UI.

    remember?: RememberedChoice

    When set, adds a third button that answers yes and stops asking. Choosing it writes true to remember, and every subsequent call with the same store resolves to true immediately without prompting.

    The default label says so — 'Yes, Always', not "Don't Ask Again". The two are not the same promise: the second reads as "stop bothering me" while doing the opposite of what a dismissal does, which is the worst place for a button to be ambiguous. Override it with rememberText to localize or to word it for a specific action.

    VS Code's own window.show*Message has no native checkbox for extensions — this is the button-plus-persistence pattern extensions build by hand.

    A storage declared with defineStorage<boolean> satisfies this, which is where the acknowledgement belongs: it is persisted state like any other, with a key and a schema you can read in one place.

    const AcknowledgedMd5 = defineStorage<boolean>({
    key: 'sample.acknowledgedMd5',
    scope: 'global',
    defaultValue: false,
    });

    await notify.confirm('MD5 is not collision resistant.', { remember: acknowledged });
    rememberText?: string

    Text for the remembering button (default: English 'Yes, Always'). Localize for user-facing UI. Ignored without remember.

    Icon/dialog severity (default: 'warn'). Not every confirmation is about a destructive action — use 'info' for a plain yes/no question.

    yesText?: string

    Text for the affirmative button (default: English 'Yes'). Localize for user-facing UI.