Skip to main content

Function: showErrorMessage()

showErrorMessage(message, ...items): Promise<string | undefined>

Show a error message. Optionally provide an array of items which will be presented as clickable buttons.

Parameters

message: string

The message to show.

• ...items: string[]

A set of items that will be rendered as actions in the message.

Returns

Promise<string | undefined>

A promise that resolves to the selected item or undefined when being dismissed.

Defined in

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