src/document/DocumentCommandHandlers.js
function _configureEditorAndResolve() {
                var editor = EditorManager.getActiveEditor();
                if (editor) {
                    if (settings) {
                        editor.setSelections(settings.selections);
                        editor.setScrollPos(settings.scrollPos.x, settings.scrollPos.y);
                    }
                }
                result.resolve(newFile);
            }
function _configureEditorAndResolve() {
                var editor = EditorManager.getActiveEditor();
                if (editor) {
                    if (settings) {
                        editor.setSelections(settings.selections);
                        editor.setScrollPos(settings.scrollPos.x, settings.scrollPos.y);
                    }
                }
                result.resolve(newFile);
            }
function _configureEditorAndResolve ( ) { var editor = EditorManager . getActiveEditor ( ) ; if ( editor ) { if ( settings ) { editor . setSelections ( settings . selections ) ; editor . setScrollPos ( settings . scrollPos . x , settings . scrollPos . y ) ; } } result . resolve ( newFile ) ; }
Reconstruct old doc's editor's view state, & finally resolve overall promise
Reconstruct old doc s editor s view state & finally resolve overall promise