Interface SaveDialogOptions

Options to configure the behaviour of a file save dialog.

interface SaveDialogOptions {
    defaultUri?: Uri;
    filters?: {
        [name: string]: string[];
    };
    saveLabel?: string;
    title?: string;
}

Properties

defaultUri?: Uri

The resource the dialog shows when opened.

filters?: {
    [name: string]: string[];
}

A set of file filters that are used by the dialog. Each entry is a human readable label, like "TypeScript", and an array of extensions, e.g.

{
'Images': ['png', 'jpg']
'TypeScript': ['ts', 'tsx']
}

Type declaration

  • [name: string]: string[]
saveLabel?: string

A human-readable string for the save button.

title?: string

Dialog title. This parameter might be ignored, as not all operating systems display a title on save dialogs.