Skip to content

Commit

Permalink
microsoft#55057 Consider built in extensions if they are dependencies…
Browse files Browse the repository at this point in the history
… while enabling or disabling
  • Loading branch information
sandy081 committed Jul 26, 2018
1 parent 4072396 commit 079dd3b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService,
if (i.enablementState === enablementState) {
return false;
}
return i.type === LocalExtensionType.User
&& (options.dependencies || options.pack)
return (options.dependencies || options.pack)
&& extensions.some(extension =>
(options.dependencies && extension.dependencies.some(id => areSameExtensions({ id }, i)))
|| (options.pack && extension.extensionPack.some(id => areSameExtensions({ id }, i)))
Expand Down

0 comments on commit 079dd3b

Please sign in to comment.