IEditorService.closeEditor(position, input)

This commit is contained in:
Benjamin Pasero
2016-05-12 15:22:05 +02:00
parent ebdb711108
commit f4546f48b1
11 changed files with 53 additions and 40 deletions

View File

@@ -684,7 +684,7 @@ export class MainThreadEditors {
let editors = this._workbenchEditorService.getVisibleEditors();
for (let editor of editors) {
if (mainThreadEditor.matches(editor)) {
return this._workbenchEditorService.closeEditor(editor).then(() => { return; });
return this._workbenchEditorService.closeEditor(editor.position, editor.input).then(() => { return; });
}
}
}