src/vs/workbench/common/editor/textResourceEditorInput.ts/TextResourceEditorInput/dispose
class TextResourceEditorInput:	override dispose(): void {
		if (this.modelReference) {
			this.modelReference.then(ref => ref.dispose());
			this.modelReference = undefined;
		}

		this.cachedModel = undefined;

		super.dispose();
	}