VS Code API
    Preparing search index...

    Function showQuickPick

    • Shows a selection list allowing multiple selections.

      Parameters

      • items: readonly string[] | Thenable<readonly string[]>

        An array of strings, or a promise that resolves to an array of strings.

      • options: QuickPickOptions & { canPickMany: true }

        Configures the behavior of the selection list.

      • Optionaltoken: CancellationToken

        A token that can be used to signal cancellation.

      Returns Thenable<string[] | undefined>

      A thenable that resolves to the selected items or undefined.

    • Shows a selection list.

      Parameters

      • items: readonly string[] | Thenable<readonly string[]>

        An array of strings, or a promise that resolves to an array of strings.

      • Optionaloptions: QuickPickOptions

        Configures the behavior of the selection list.

      • Optionaltoken: CancellationToken

        A token that can be used to signal cancellation.

      Returns Thenable<string | undefined>

      A thenable that resolves to the selected string or undefined.

    • Shows a selection list allowing multiple selections.

      Type Parameters

      Parameters

      • items: readonly T[] | Thenable<readonly T[]>

        An array of items, or a promise that resolves to an array of items.

      • options: QuickPickOptions & { canPickMany: true }

        Configures the behavior of the selection list.

      • Optionaltoken: CancellationToken

        A token that can be used to signal cancellation.

      Returns Thenable<T[] | undefined>

      A thenable that resolves to the selected items or undefined.

    • Shows a selection list.

      Type Parameters

      Parameters

      • items: readonly T[] | Thenable<readonly T[]>

        An array of items, or a promise that resolves to an array of items.

      • Optionaloptions: QuickPickOptions

        Configures the behavior of the selection list.

      • Optionaltoken: CancellationToken

        A token that can be used to signal cancellation.

      Returns Thenable<T | undefined>

      A thenable that resolves to the selected item or undefined.