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

@@ -422,14 +422,14 @@ export class MainThreadDocumentsAndEditors {
options: props.options,
selections: props.selections,
visibleRanges: props.visibleRanges,
editorPosition: this._findEditorPosition(textEditor)
editorPosition: this._findEditorPosition(textEditor) // TODO@grid [EXTENSIONS] adopt in extension host
};
}
private _findEditorPosition(editor: MainThreadTextEditor): EditorPosition {
for (let workbenchEditor of this._workbenchEditorService.getVisibleEditors()) {
if (editor.matches(workbenchEditor)) {
return workbenchEditor.position;
return workbenchEditor.group;
}
}
return undefined;