Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shanalikhan committed Jun 24, 2019
1 parent 9b7ce05 commit 3a7b890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/environmentPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export class Environment {
)[0].extensionPath,
".."
).concat(normalize("/")); // Gets first non-builtin extension's path
}

if (this.isPortable) {
} else {
this.PATH = process.env.VSCODE_PORTABLE;
this.USER_FOLDER = resolve(this.PATH, "user-data/User").concat(
normalize("/")
Expand Down
11 changes: 5 additions & 6 deletions src/service/pluginService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ export class PluginService {
notificationCallBack: (...data: any[]) => void
): Promise<ExtensionInformation[]> {
let remainingExtensions: ExtensionInformation[] = [...missingExtensions];

notificationCallBack("TOTAL EXTENSIONS : " + missingExtensions.length);
const missingExtensionsCount = missingExtensions.length;
notificationCallBack("TOTAL EXTENSIONS : " + missingExtensionsCount);
notificationCallBack("");
notificationCallBack("");
return Promise.all(
Expand All @@ -228,11 +228,10 @@ export class PluginService {
remExt => remExt.name !== ext.name
);
notificationCallBack("");
notificationCallBack(`[x] - EXTENSION: ${ext.name} INSTALLED.`);
notificationCallBack(
`EXTENSION: ${ext.name} INSTALLED. ${
remainingExtensions.length
} OF ${missingExtensions.length -
remainingExtensions.length} EXTENSIONS REMAINING`,
` ${missingExtensions.length -
remainingExtensions.length} OF ${missingExtensionsCount} INSTALLED`,
true
);
notificationCallBack("");
Expand Down

0 comments on commit 3a7b890

Please sign in to comment.