Skip to content

Commit a8d63d3

Browse files
author
Benjamin Pasero
committed
Close untitled editors when confirmed to not save (fixes microsoft#29572)
1 parent 5d6951c commit a8d63d3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/vs/workbench/services/textfile/common/textFileService.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ export abstract class TextFileService implements ITextFileService {
270270

271271
// Don't Save
272272
else if (confirm === ConfirmResult.DONT_SAVE) {
273+
274+
// Make sure to revert untitled so that they do not restore
275+
// see https://github.com/Microsoft/vscode/issues/29572
276+
this.untitledEditorService.revertAll();
277+
273278
return this.noVeto({ cleanUpBackups: true });
274279
}
275280

0 commit comments

Comments
 (0)