OptionalcanAllow to select files, defaults to true.
OptionalcanAllow to select folders, defaults to false.
OptionalcanAllow to select many files or folders.
OptionaldefaultThe resource the dialog shows when opened.
OptionalfiltersA set of file filters that are used by the dialog. Each entry is a human-readable label, like "TypeScript", and an array of extensions, for example:
{
'Images': ['png', 'jpg'],
'TypeScript': ['ts', 'tsx']
}
OptionalopenA human-readable string for the open button.
OptionaltitleDialog title.
This parameter might be ignored, as not all operating systems display a title on open dialogs (for example, macOS).
Options to configure the behavior of a file open dialog.
canSelectFilesandcanSelectFolderstotrueon these platforms, a folder selector will be shown.canSelectFilesandcanSelectFolderstofalseis futile and the editor then silently adjusts the options to select files.