mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 01:25:38 -05:00
Add null check to extensionIdentifier to show reload notification (#4208)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user