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.

Source

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


filters?

optional filters: object[]

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

Source

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


openLabel?

optional openLabel: string

A human-readable string for the open button.

Source

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


selectors?

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

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

Source

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


title?

optional title: string

Dialog title.

Source

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