Add null check to extensionIdentifier to show reload notification (#4208)

This commit is contained in:
Karl Burtram
2019-02-26 14:18:05 -08:00
committed by GitHub
parent 4a476673ac
commit e37533afbb

View File

@@ -699,7 +699,11 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService,
// {{SQL CARBON EDIT}}
let extensionPolicy = this.configurationService.getValue<string>(ExtensionsPolicyKey);
if (typeof extension === 'string') {
return this.installWithProgress(() => this.extensionService.install(URI.file(extension)).then(extensionIdentifier => this.checkAndEnableDisabledDependencies(extensionIdentifier)));
return this.installWithProgress(() => this.extensionService.install(URI.file(extension)).then(extensionIdentifier => {
if (extensionIdentifier) {
this.checkAndEnableDisabledDependencies(extensionIdentifier);
}
}));
}
if (!(extension instanceof Extension)) {