ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Use this path only when the governed behavior belongs to the editor/workbench, such as editor UI, updates, extension management, or other VS Code-native behavior.
VS Code configuration policy can arrive from:
NativePolicyService on Windows/macOS, FilePolicyService on Linux);AccountPolicyService via IPolicyData, deprecated fornew properties);
MultiplexPolicyService combines the applicable policy services. Managed-settings keys must be declared before they can project into VS Code configuration.
Find the configuration registration, typically in a *.contribution.ts file, and add:
policy: {
name: 'MyPolicyName',
category: PolicyCategory.InteractiveSession,
minimumVersion: '1.133',
localization: {
description: {
key: 'my.config.key.policy',
value: nls.localize('my.config.key.policy', "Policy description."),
},
},
}Rules:
name.minimumVersion from root package.json major/minor.PolicyCategory from vs/base/common/policy and use an existing category (Extensions, IntegratedTerminal, InteractiveSession, Telemetry, or Update) unless a new category and its localization are necessary.
enumDescriptions entry per value.value(policyData) callbacks when maintaining historical GitHub account policies; return the restrictive value to override and undefined otherwise.
managed-settings key into VS Code configuration.
Do not add new GitHub-token entitlement or policy fields to IPolicyData / AccountPolicyService. Use managed settings for new Copilot enterprise controls.
Some existing preview-feature policies use the historical policyData.chat_preview_features_enabled token entitlement. When maintaining one, compare with === false (not negation), return the setting's restrictive value when false, and return undefined otherwise. Do not use this pattern for a new control.
If one policy controls multiple VS Code settings, one setting owns policy; the others use policyReference: { name }.
policy and policyReference.value, managed-settings declarations, restricted value,localization, or other policy metadata.
1. Add/update the policy and focused value/projection tests. 2. Check the build watch task or run the smallest relevant type check/test (npm run typecheck-client when needed). 3. Run npm run export-policy-data. 4. Verify the policy appears and include build/lib/policies/policyData.jsonc.
Never edit or synthesize policyData.jsonc, and never invoke a single product entrypoint's --export-policy-data directly. Run the npm command from the worktree containing the source change; it exports both Workbench and the Agents window, detects conflicting policy metadata, and produces the complete catalog.
The blocking src/vs/workbench/contrib/policyExport/test/node/policyExport.integrationTest.ts uses this canonical export path in check mode.
Key sources:
src/vs/base/common/policy.tssrc/vs/base/common/defaultAccount.tssrc/vs/platform/policy/common/policy.tssrc/vs/platform/configuration/common/configurationRegistry.tssrc/vs/platform/configuration/common/configurations.tssrc/vs/platform/policy/common/copilotManagedSettings.tssrc/vs/workbench/services/policies/common/accountPolicyService.tsbuild/lib/policies/policyGenerator.tsbuild/lib/test/policyConversion.test.ts