From 84184f6b51e439298143a9fc70759d0fa818168d Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Wed, 3 Jul 2019 20:44:31 +1000 Subject: [PATCH] Oh yeah, zero-based indexes --- src/services/extensions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/extensions.ts b/src/services/extensions.ts index 72fb0a3..09c0bb4 100755 --- a/src/services/extensions.ts +++ b/src/services/extensions.ts @@ -107,7 +107,7 @@ class ExtensionHelper { let removes = extensionsToRemove.map((ext, i) => { logger.appendLine( - `Removing ${ext.name} (${i} of ${extensionsToRemove.length})` + `Removing ${ext.name} (${i + 1} of ${extensionsToRemove.length})` ); logger.appendLine(""); this.removeExtension(ext, logger); @@ -177,7 +177,7 @@ class ExtensionHelper { let installs = newExtensions.map((ext, i) => { logger.appendLine( - `Installing ${ext.name} (${i} of ${newExtensions.length})` + `Installing ${ext.name} (${i + 1} of ${newExtensions.length})` ); logger.appendLine(""); return this.installExtension(ext, this.settings.getCodeBinary(), logger);