From 98c9e612e2110cbaa6923f649c01fab3df0c9c31 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Thu, 6 Oct 2016 16:39:03 +0200 Subject: [PATCH] Diff editor does not ask to save when closing (fixes #13095) --- src/vs/workbench/browser/parts/editor/editorPart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/browser/parts/editor/editorPart.ts b/src/vs/workbench/browser/parts/editor/editorPart.ts index 6a9ffe6df5d46..91763e0466e1a 100644 --- a/src/vs/workbench/browser/parts/editor/editorPart.ts +++ b/src/vs/workbench/browser/parts/editor/editorPart.ts @@ -678,7 +678,7 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService editors.push(editor.modifiedInput); } - return editors.reduce((prev, e) => prev += this.stacks.count(editor), 0); + return editors.reduce((prev, e) => prev += this.stacks.count(e), 0); } public getStacksModel(): EditorStacksModel {