Skip to content

Commit

Permalink
Don't uninstall application-scoped extensions when importing profile (#…
Browse files Browse the repository at this point in the history
…190067) (#190085)

Don't uninstall application-scoped extensions
  • Loading branch information
joyceerhl authored Aug 9, 2023
1 parent 9ca413b commit 6c3e3db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class ExtensionsResource implements IProfileResource {
extensionsToEnableOrDisable.push({ extension: e.identifier, enable: !e.disabled });

This comment has been minimized.

Copy link
@lelle741122

lelle741122 Sep 20, 2023

❤️

}
}
const extensionsToUninstall: ILocalExtension[] = installedExtensions.filter(extension => !extension.isBuiltin && !profileExtensions.some(({ identifier }) => areSameExtensions(identifier, extension.identifier)));

This comment has been minimized.

Copy link
@lelle741122

lelle741122 Sep 20, 2023

❤️

const extensionsToUninstall: ILocalExtension[] = installedExtensions.filter(extension => !extension.isBuiltin && !profileExtensions.some(({ identifier }) => areSameExtensions(identifier, extension.identifier)) && !extension.isApplicationScoped);
for (const { extension, enable } of extensionsToEnableOrDisable) {
if (enable) {
this.logService.trace(`Importing Profile (${profile.name}): Enabling extension...`, extension.id);
Expand Down

1 comment on commit 6c3e3db

@Sintayew4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.