Skip to content

Commit

Permalink
#42115 handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jan 25, 2018
1 parent e7d93ed commit f93fb56
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ export class ExtensionManagementService implements IExtensionManagementService {
}
})
.then(extension => this.downloadInstallableExtension(extension))
.then(installableExtension => this.installExtension(installableExtension));

this.installingExtensions.set(extension.identifier.id, installingExtension);
installingExtension.then(
.then(installableExtension => this.installExtension(installableExtension))
.then(
local => { this.installingExtensions.delete(extension.identifier.id); return local; },
e => { this.installingExtensions.delete(extension.identifier.id); return TPromise.wrapError(e); }
);
);

this.installingExtensions.set(extension.identifier.id, installingExtension);
}
return installingExtension;
}
Expand Down

0 comments on commit f93fb56

Please sign in to comment.