code: function requestFindReferences(session, offset) {
              var response = requestFindRefs(session, session.editor.document, offset);
  
              if (response && response.hasOwnProperty("promise")) {
                  response.promise.done(handleFindRefs).fail(function () {
                      result.reject();
                  });
              }
          }
docs: Make a find ref request.
  @param {Session} session - the session
  @param {number} offset - the offset of where to jump from