Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
--replace-all committed Jun 14, 2019
1 parent c9aae67 commit b0b9aa9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/service/pluginService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ export class PluginService {
return selectedExtension;
} catch (err) {
throw new Error(
`Sync : Unable to delete extension ${selectedExtension.name} ${selectedExtension.version}: ${err}`
`Sync : Unable to delete extension ${selectedExtension.name} ${
selectedExtension.version
}: ${err}`
);
}
})
Expand Down Expand Up @@ -217,18 +219,20 @@ export class PluginService {
notificationCallBack("");
notificationCallBack("");
return Promise.all(
missingExtensions.map(async ext => {
await missingExtensions.map(async ext => {
const name = ext.publisher + "." + ext.name;
try {
notificationCallBack("");
notificationCallBack(`[x] - EXTENSION: ${ext.name} - INSTALLING`);
await vscode.commands.executeCommand(
"workbench.extensions.installExtension",
name
);
remainingExtensions = remainingExtensions.filter(
remExt => remExt.name !== ext.name
);
notificationCallBack("");
notificationCallBack(`[x] - EXTENSION: ${ext.name} INSTALLED.`);

notificationCallBack(` - EXTENSION: ${ext.name} - INSTALLED.`);
notificationCallBack(
` ${missingExtensions.length -
remainingExtensions.length} OF ${missingExtensionsCount} INSTALLED`,
Expand Down

0 comments on commit b0b9aa9

Please sign in to comment.