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:1975


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:1991


openLabel?

optional openLabel: string

A human-readable string for the open button.

Defined in

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


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:1986


title?

optional title: string

Dialog title.

Defined in

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