remove console.time

This commit is contained in:
Sandeep Somavarapu
2020-11-17 16:21:33 +01:00
parent 7bf226cf50
commit d3057c54c8

View File

@@ -79,7 +79,6 @@ export class Main {
@INativeEnvironmentService private readonly environmentService: INativeEnvironmentService,
@IExtensionManagementService private readonly extensionManagementService: IExtensionManagementService,
@IExtensionGalleryService private readonly extensionGalleryService: IExtensionGalleryService,
@ILogService private readonly logService: ILogService,
) { }
async run(argv: NativeParsedArgs): Promise<void> {
@@ -128,10 +127,6 @@ export class Main {
}
private async installExtensions(extensions: string[], builtinExtensionIds: string[], isMachineScoped: boolean, force: boolean): Promise<void> {
if (this.logService.getLevel() === LogLevel.Trace || this.logService.getLevel() === LogLevel.Debug) {
console.time('Installing Extensions');
}
const failed: string[] = [];
const installedExtensionsManifests: IExtensionManifest[] = [];
if (extensions.length) {
@@ -198,10 +193,6 @@ export class Main {
await this.updateLocalizationsCache();
}
if (this.logService.getLevel() === LogLevel.Trace || this.logService.getLevel() === LogLevel.Debug) {
console.timeEnd('Installing Extensions');
}
if (failed.length) {
throw new Error(localize('installation failed', "Failed Installing Extensions: {0}", failed.join(', ')));
}