mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
also add showSaveDialog-api, #13807
This commit is contained in:
@@ -114,16 +114,22 @@ export interface MainThreadDiagnosticsShape extends IDisposable {
|
||||
$clear(owner: string): TPromise<any>;
|
||||
}
|
||||
|
||||
export interface MainThreadDialogOptions {
|
||||
uri?: URI;
|
||||
export interface MainThreadDialogOpenOptions {
|
||||
defaultResource?: URI;
|
||||
openLabel?: string;
|
||||
openFiles?: boolean;
|
||||
openFolders?: boolean;
|
||||
openMany?: boolean;
|
||||
}
|
||||
|
||||
export interface MainThreadDialogSaveOptions {
|
||||
defaultResource?: URI;
|
||||
saveLabel?: string;
|
||||
}
|
||||
|
||||
export interface MainThreadDiaglogsShape extends IDisposable {
|
||||
$showOpenDialog(options: MainThreadDialogOptions): TPromise<string[]>;
|
||||
$showOpenDialog(options: MainThreadDialogOpenOptions): TPromise<string[]>;
|
||||
$showSaveDialog(options: MainThreadDialogSaveOptions): TPromise<string>;
|
||||
}
|
||||
|
||||
export interface MainThreadDocumentContentProvidersShape extends IDisposable {
|
||||
|
||||
Reference in New Issue
Block a user