Skip to main content

Interface: OpenDialogOptions

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

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

The resource the dialog shows when opened.


filters?​

optional filters?: object[]

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

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

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

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

Dialog title.