code: function handleUpdateFile(path, text) {
  
      ternServer.addFile(path, text);
  
      self.postMessage({type: MessageIds.TERN_UPDATE_FILE_MSG,
          path: path
          });
  
      // reset to get the best hints with the updated file.
      ternServer.reset();
      Infer.resetGuessing();
  }
docs: Update the context of a file in tern.
  
  @param {string} path - full path of file.
  @param {string} text - content of the file.