grid - let IEditor.group be INextEditorGroup

This commit is contained in:
Benjamin Pasero
2018-05-18 08:55:57 +02:00
parent 002972c438
commit d2baa66bd9
31 changed files with 158 additions and 159 deletions

View File

@@ -99,7 +99,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
for (let workbenchEditor of this._workbenchEditorService.getVisibleEditors()) {
const id = this._documentsAndEditors.findTextEditorIdFor(workbenchEditor);
if (id) {
result[id] = workbenchEditor.group; // TODO@grid [EXTENSIONS] adopt in extension host
result[id] = workbenchEditor.group.id; // TODO@grid [EXTENSIONS] adopt in extension host
}
}
return result;
@@ -147,7 +147,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
let editors = this._workbenchEditorService.getVisibleEditors();
for (let editor of editors) {
if (mainThreadEditor.matches(editor)) {
return this._workbenchEditorService.closeEditor(editor.group, editor.input).then(() => { return; });
return editor.group.closeEditor(editor.input).then(() => { return; });
}
}
}