mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 01:25:38 -05:00
Merge from vscode dbe62be3266ffb6772a7f3db0bf61d63f4aa7f65 (#9337)
This commit is contained in:
@@ -642,14 +642,13 @@ export abstract class BaseCloseAllAction extends Action {
|
||||
return;
|
||||
}
|
||||
|
||||
let saveOrRevert: boolean;
|
||||
if (confirm === ConfirmResult.DONT_SAVE) {
|
||||
saveOrRevert = await this.editorService.revertAll({ soft: true, includeUntitled: true });
|
||||
await this.editorService.revertAll({ soft: true, includeUntitled: true });
|
||||
} else {
|
||||
saveOrRevert = await this.editorService.saveAll({ reason: SaveReason.EXPLICIT, includeUntitled: true });
|
||||
await this.editorService.saveAll({ reason: SaveReason.EXPLICIT, includeUntitled: true });
|
||||
}
|
||||
|
||||
if (saveOrRevert) {
|
||||
if (!this.workingCopyService.hasDirty) {
|
||||
return this.doCloseAll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user