whole_func_string: function addExtension(type, extension) {
      if (!extension) {
          return;
      }
  
      let cache = pluginCache;
      if (process.env.APP_TYPE === 'quick') {
          cache = appGlobal.okamPluginCache;
      }
  
      let existedExtensions = cache.usedExtensions[type];
      /* istanbul ignore next */
      if (!existedExtensions) {
          existedExtensions = cache.usedExtensions[type] = [];
      }
  
      existedExtensions.push(extension);
  }
func_code_string: function addExtension(type, extension) {
      if (!extension) {
          return;
      }
  
      let cache = pluginCache;
      if (process.env.APP_TYPE === 'quick') {
          cache = appGlobal.okamPluginCache;
      }
  
      let existedExtensions = cache.usedExtensions[type];
      /* istanbul ignore next */
      if (!existedExtensions) {
          existedExtensions = cache.usedExtensions[type] = [];
      }
  
      existedExtensions.push(extension);
  }
func_documentation_string: Add extension
  
  @inner
  @param {string} type the extension type
  @param {Object} extension the extension