Cannot toggle shared process when window.experimental.sharedProcessUseUtilityProcess: true (fix #174960) (#175000)

This commit is contained in:
Benjamin Pasero
2023-02-22 07:30:55 +01:00
committed by GitHub
parent 6efb4dea05
commit 2b838fda85
@@ -16,6 +16,7 @@ import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
import { IFileService } from 'vs/platform/files/common/files';
import { INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-sandbox/environmentService';
import { URI } from 'vs/base/common/uri';
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
export class ToggleDevToolsAction extends Action2 {
@@ -75,6 +76,7 @@ export class ToggleSharedProcessAction extends Action2 {
id: 'workbench.action.toggleSharedProcess',
title: { value: localize('toggleSharedProcess', "Toggle Shared Process"), original: 'Toggle Shared Process' },
category: Categories.Developer,
precondition: ContextKeyExpr.has('config.window.experimental.sharedProcessUseUtilityProcess').negate(),
f1: true
});
}