src/vs/workbench/api/browser/mainThreadEditor.ts/MainThreadTextEditor/matches
class MainThreadTextEditor:	public matches(editor: IEditorPane): boolean {
		if (!editor) {
			return false;
		}
		return editor.getControl() === this._codeEditor;
	}