Skip to main content

Interface: OpenDialogOptions

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

Options to configure the behaviour of a file open dialog.

Properties

defaultUri?

optional defaultUri: Uri

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

The resource the dialog shows when opened.


filters?

optional filters: object[]

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

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

extensions

extensions: string[]

name

name: string


openLabel?

optional openLabel: string

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

A human-readable string for the open button.


selectors?

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

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

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


title?

optional title: string

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

Dialog title.