code: function handleRename(response) {
  
          if (response.error) {
              EditorManager.getActiveEditor().displayErrorMessageAtCursor(response.error);
              return;
          }
  
          var file = response.file,
              offset = response.offset;
  
          var $deferredFindRefs = getPendingRequest(file, offset, MessageIds.TERN_REFS);
  
          if ($deferredFindRefs) {
              $deferredFindRefs.resolveWith(null, [response]);
          }
      }
docs: Handle the response from the tern node domain when
  it responds with the references
  
  @param response - the response from the node domain