src/vs/workbench/browser/parts/editor/textEditor.ts/BaseTextEditor/saveTextEditorViewState
class BaseTextEditor:	protected saveTextEditorViewState(resource: URI, cleanUpOnDispose?: IEditorInput): void {
		const editorViewState = this.retrieveTextEditorViewState(resource);
		if (!editorViewState || !this.group) {
			return;
		}

		this.editorMemento.saveEditorState(this.group, resource, editorViewState);

		if (cleanUpOnDispose) {
			this.editorMemento.clearEditorStateOnDispose(resource, cleanUpOnDispose);
		}
	}