src/vs/workbench/browser/parts/editor/editorActions.ts/ReOpenInTextEditorAction/run
class ReOpenInTextEditorAction:	override async run(): Promise<void> {
		const activeEditorPane = this.editorService.activeEditorPane;
		if (!activeEditorPane) {
			return;
		}

		const activeEditorResource = activeEditorPane.input.resource;
		if (!activeEditorResource) {
			return;
		}

		const options = activeEditorPane.options;
		const group = activeEditorPane.group;

		if (this.fileEditorInputFactory.isFileEditorInput(this.editorService.activeEditor)) {
			return;
		}

		// Replace the current editor with the text editor
		await this.editorService.replaceEditors([
			{
				editor: activeEditorPane.input,
				replacement: activeEditorPane.input,
				options: { ...options, override: DEFAULT_EDITOR_ASSOCIATION.id },
			}
		], group);
	}