mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
use IWorkbenchExtensionEnablementService
because know when a globally disabled extension is workspace enabled (#168161)
fixes https://github.com/microsoft/vscode/issues/160460
This commit is contained in:
parent
711bdf0066
commit
538a24d505
|
@ -24,6 +24,7 @@ import { IWorkbenchIssueService } from 'vs/workbench/services/issue/common/issue
|
|||
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
|
||||
import { areSameExtensions } from 'vs/platform/extensionManagement/common/extensionManagementUtil';
|
||||
import { Categories } from 'vs/platform/action/common/actionCommonCategories';
|
||||
import { IWorkbenchExtensionEnablementService } from 'vs/workbench/services/extensionManagement/common/extensionManagement';
|
||||
|
||||
// --- bisect service
|
||||
|
||||
|
@ -235,11 +236,10 @@ registerAction2(class extends Action2 {
|
|||
const dialogService = accessor.get(IDialogService);
|
||||
const hostService = accessor.get(IHostService);
|
||||
const extensionManagement = accessor.get(IExtensionManagementService);
|
||||
const extensionEnablementService = accessor.get(IGlobalExtensionEnablementService);
|
||||
const extensionEnablementService = accessor.get(IWorkbenchExtensionEnablementService);
|
||||
const extensionsBisect = accessor.get(IExtensionBisectService);
|
||||
|
||||
const disabled = new Set(extensionEnablementService.getDisabledExtensions().map(id => id.id));
|
||||
const extensions = (await extensionManagement.getInstalled(ExtensionType.User)).filter(ext => !disabled.has(ext.identifier.id));
|
||||
const extensions = (await extensionManagement.getInstalled(ExtensionType.User)).filter(ext => extensionEnablementService.isEnabled(ext));
|
||||
|
||||
const res = await dialogService.confirm({
|
||||
message: localize('msg.start', "Extension Bisect"),
|
||||
|
|
Loading…
Reference in a new issue