grid - towards GroupIdentifier over Position in IEditor

This commit is contained in:
Benjamin Pasero
2018-05-13 08:16:05 +02:00
parent b0cd496753
commit 01bf9616e4
36 changed files with 210 additions and 254 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.position;
result[id] = workbenchEditor.group; // 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.position, editor.input).then(() => { return; });
return this._workbenchEditorService.closeEditor(editor.group, editor.input).then(() => { return; });
}
}
}