Skip to main content

Interface: OpenDialogOptions

Options to configure the behaviour of a file open dialog.

Properties

defaultUri?

optional defaultUri: Uri

The resource the dialog shows when opened.

Defined in

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


filters?

optional filters: object[]

A set of file filters that are used by the dialog.

Defined in

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


openLabel?

optional openLabel: string

A human-readable string for the open button.

Defined in

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


selectors?

optional selectors: ("openFile" | "openDirectory" | "multiSelections" | "showHiddenFiles")[]

Contains which features the dialog should use. The following values are supported:

Defined in

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


title?

optional title: string

Dialog title.

Defined in

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