mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
perf - introduce and use "soft" revert when closing all editors
This commit is contained in:
@@ -590,7 +590,7 @@ export class CloseAllEditorsAction extends Action {
|
||||
|
||||
let saveOrRevertPromise: TPromise<boolean>;
|
||||
if (confirm === ConfirmResult.DONT_SAVE) {
|
||||
saveOrRevertPromise = this.textFileService.revertAll().then(() => true);
|
||||
saveOrRevertPromise = this.textFileService.revertAll(null, { soft: true }).then(() => true);
|
||||
} else {
|
||||
saveOrRevertPromise = this.textFileService.saveAll(true).then(res => res.results.every(r => r.success));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user