src/vs/workbench/services/textfile/common/textFileEditorModel.ts/TextFileEditorModel/getMode
class TextFileEditorModel:	override getMode(): string | undefined {
		if (this.textEditorModel) {
			return this.textEditorModel.getModeId();
		}

		return this.preferredMode;
	}