code: 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);
              }
docs: Reconstruct old doc's editor's view state, & finally resolve overall promise