Skip to main content

Interface: OpenDialogOptions

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

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

The resource the dialog shows when opened.


filters?

optional filters: object[]

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

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

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

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

Dialog title.