mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
New untitiled file not saved on exit (fixes #4739)
This commit is contained in:
@@ -162,7 +162,11 @@ export class ElectronWindow {
|
||||
}
|
||||
|
||||
public showSaveDialog(options: Electron.Dialog.SaveDialogOptions, callback?: (fileName: string) => void): string {
|
||||
return dialog.showSaveDialog(this.win, options, callback);
|
||||
if (callback) {
|
||||
return dialog.showSaveDialog(this.win, options, callback);
|
||||
}
|
||||
|
||||
return dialog.showSaveDialog(this.win, options);
|
||||
}
|
||||
|
||||
public setFullScreen(fullscreen: boolean): void {
|
||||
|
||||
Reference in New Issue
Block a user