code: function requestFindRefs(session, document, offset) {
          if (!document || !session) {
              return;
          }
          var path    = document.file.fullPath,
              fileInfo = {
                  type: MessageIds.TERN_FILE_INFO_TYPE_FULL,
                  name: path,
                  offsetLines: 0,
                  text: ScopeManager.filterText(session.getJavascriptText())
              };
          var ternPromise = getRefs(fileInfo, offset);
  
          return {promise: ternPromise};
      }
docs: Create info required to find reference