Skip to main content

Function: showQuickPick()

Call Signature

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

Defined in: packages/extension-api/src/extension-api.d.ts:2289

Shows a selection list allowing multiple selections.

Parameters

items

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

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

options

QuickPickOptions & object

Configures the behavior of the selection list.

token?

CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<undefined | string[]>

A promise that resolves to the selected items or undefined.

Call Signature

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

Defined in: packages/extension-api/src/extension-api.d.ts:2303

Shows a selection list.

Parameters

items

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

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

options?

QuickPickOptions

Configures the behavior of the selection list.

token?

CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<undefined | string>

A promise that resolves to the selection or undefined.

Call Signature

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

Defined in: packages/extension-api/src/extension-api.d.ts:2317

Shows a selection list allowing multiple selections.

Type Parameters

T extends QuickPickItem

Parameters

items

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

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

options

QuickPickOptions & object

Configures the behavior of the selection list.

token?

CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<undefined | T[]>

A promise that resolves to the selected items or undefined.

Call Signature

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

Defined in: packages/extension-api/src/extension-api.d.ts:2331

Shows a selection list.

Type Parameters

T extends QuickPickItem

Parameters

items

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

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

options?

QuickPickOptions

Configures the behavior of the selection list.

token?

CancellationToken

A token that can be used to signal cancellation.

Returns

Promise<undefined | T>

A promise that resolves to the selected item or undefined.