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 {