code: function filterText(text) {
          var newText = text;
          if (text.length > preferences.getMaxFileSize()) {
              newText = "";
          }
          return newText;
      }
docs: check to see if the text we are sending to Tern is too long.
  @param {string} the text to check
  @return {string} the text, or the empty text if the original was too long