also add showSaveDialog-api, #13807

This commit is contained in:
Johannes Rieken
2017-09-07 17:32:33 +02:00
parent 550e32ea54
commit a731263d95
5 changed files with 62 additions and 14 deletions

View File

@@ -21,4 +21,10 @@ export class ExtHostDialogs {
return filepaths && filepaths.map(URI.file);
});
}
showSaveDialog(options: vscode.SaveDialogOptions): Thenable<URI> {
return this._proxy.$showSaveDialog(<any>options).then(filepath => {
return filepath && URI.file(filepath);
});
}
}