src/vs/workbench/browser/parts/editor/textEditor.ts/BaseTextEditor/getViewState
class BaseTextEditor:	getViewState(): IEditorViewState | undefined {
		const resource = this.input?.resource;
		if (resource) {
			return withNullAsUndefined(this.retrieveTextEditorViewState(resource));
		}

		return undefined;
	}