src/vs/workbench/browser/parts/editor/textResourceEditor.ts/AbstractTextResourceEditor/restoreTextResourceEditorViewState
class AbstractTextResourceEditor:	private restoreTextResourceEditorViewState(editor: AbstractTextResourceEditorInput, control: IEditor) {
		if (editor instanceof UntitledTextEditorInput || editor instanceof TextResourceEditorInput) {
			const viewState = this.loadTextEditorViewState(editor.resource);
			if (viewState) {
				control.restoreViewState(viewState);
			}
		}
	}