src/vs/workbench/browser/parts/editor/editorControl.ts/EditorControl/getEditorDescriptor
class EditorControl:	private getEditorDescriptor(editor: EditorInput): IEditorDescriptor {
		if (editor.hasCapability(EditorInputCapabilities.RequiresTrust) && !this.workspaceTrustService.isWorkpaceTrusted()) {
			// Workspace trust: if an editor signals it needs workspace trust
			// but the current workspace is untrusted, we fallback to a generic
			// editor descriptor to indicate this an do NOT load the registered
			// editor.
			return WorkspaceTrustRequiredEditor.DESCRIPTOR;
		}

		return assertIsDefined(this.editorsRegistry.getEditor(editor));
	}