src/editor/EditorManager.js
function _restoreEditorViewState(editor) {
        // We want to ignore the current state of the editor, so don't call __getViewState()
        var viewState = ViewStateManager.getViewState(editor.document.file);
        if (viewState) {
            editor.restoreViewState(viewState);
        }
    }
function _restoreEditorViewState(editor) {
        // We want to ignore the current state of the editor, so don't call __getViewState()
        var viewState = ViewStateManager.getViewState(editor.document.file);
        if (viewState) {
            editor.restoreViewState(viewState);
        }
    }
function _restoreEditorViewState ( editor ) { // We want to ignore the current state of the editor, so don't call __getViewState() var viewState = ViewStateManager . getViewState ( editor . document . file ) ; if ( viewState ) { editor . restoreViewState ( viewState ) ; } }
Updates _viewStateCache from the given editor's actual current state
@param {!Editor} editor - editor restore cached data
@private
Updates _viewStateCache from the given editor s actual current state