src/vs/workbench/browser/parts/editor/textResourceEditor.ts/TextResourceEditor/createEditorControl
class TextResourceEditor:	protected override createEditorControl(parent: HTMLElement, configuration: ICodeEditorOptions): IEditor {
		const control = super.createEditorControl(parent, configuration);

		// Install a listener for paste to update this editors
		// language if the paste includes a specific language
		const codeEditor = getCodeEditor(control);
		if (codeEditor) {
			this._register(codeEditor.onDidPaste(e => this.onDidEditorPaste(e, codeEditor)));
		}

		return control;
	}