Skip to main content

Function: showQuickPick()

showQuickPick(items, options, token)

showQuickPick(items, options, token?): Promise<string[] | undefined>

Shows a selection list allowing multiple selections.

Parameters

items: readonly string[] | Promise<readonly string[]>

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

options: QuickPickOptions & object

Configures the behavior of the selection list.

token?: CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<string[] | undefined>

A promise that resolves to the selected items or undefined.

Source

packages/extension-api/src/extension-api.d.ts:1879

showQuickPick(items, options, token)

showQuickPick(items, options?, token?): Promise<string | undefined>

Shows a selection list.

Parameters

items: readonly string[] | Promise<readonly string[]>

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

options?: QuickPickOptions

Configures the behavior of the selection list.

token?: CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<string | undefined>

A promise that resolves to the selection or undefined.

Source

packages/extension-api/src/extension-api.d.ts:1893

showQuickPick(items, options, token)

showQuickPick<T>(items, options, token?): Promise<T[] | undefined>

Shows a selection list allowing multiple selections.

Type parameters

T extends QuickPickItem

Parameters

items: readonly T[] | Promise<readonly T[]>

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

options: QuickPickOptions & object

Configures the behavior of the selection list.

token?: CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<T[] | undefined>

A promise that resolves to the selected items or undefined.

Source

packages/extension-api/src/extension-api.d.ts:1907

showQuickPick(items, options, token)

showQuickPick<T>(items, options?, token?): Promise<T | undefined>

Shows a selection list.

Type parameters

T extends QuickPickItem

Parameters

items: readonly T[] | Promise<readonly T[]>

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

options?: QuickPickOptions

Configures the behavior of the selection list.

token?: CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<T | undefined>

A promise that resolves to the selected item or undefined.

Source

packages/extension-api/src/extension-api.d.ts:1921