You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'list-extensions': {type: 'boolean',cat: 'e',description: localize('listExtensions',"List the installed extensions.")},
98
98
'show-versions': {type: 'boolean',cat: 'e',description: localize('showVersions',"Show versions of installed extensions, when using --list-extensions.")},
99
99
'category': {type: 'string',allowEmptyValue: true,cat: 'e',description: localize('category',"Filters installed extensions by provided category, when using --list-extensions."),args: 'category'},
100
+
'download-extension': {type: 'string[]',cat: 'e',args: 'ext-id',description: localize('downloadExtension',"Downloads the extension VSIX that can be installable. The argument is an identifier of an extension that is '${publisher}.${name}'. To download a specific version provide '@${version}'. For example: '[email protected]'. Should provide '--location' to specify the location to download the VSIX.")},
100
101
'install-extension': {type: 'string[]',cat: 'e',args: 'ext-id | path',description: localize('installExtension',"Installs or updates an extension. The argument is either an extension id or a path to a VSIX. The identifier of an extension is '${publisher}.${name}'. Use '--force' argument to update to latest version. To install a specific version provide '@${version}'. For example: '[email protected]'.")},
101
102
'pre-release': {type: 'boolean',cat: 'e',description: localize('install prerelease',"Installs the pre-release version of the extension, when using --install-extension")},
102
103
'uninstall-extension': {type: 'string[]',cat: 'e',args: 'ext-id',description: localize('uninstallExtension',"Uninstalls an extension.")},
this.logger.info(localize('successDownload',"Extension '{0}' was successfully downloaded.",extensionInfo.id));
101
+
}catch(error){
102
+
this.logger.error(localize('error while downloading extension',"Error while downloading extension '{0}': {1}",extensionInfo.id,getErrorMessage(error)));
103
+
}
104
+
}));
105
+
}catch(error){
106
+
this.logger.error(localize('error while downloading extensions',"Error while downloading extensions: {0}",getErrorMessage(error)));
0 commit comments