Skip to content

Revert "Generate policy data as JSON"#272362

Merged
pwang347 merged 1 commit into
mainfrom
revert-272018-pawang/policies
Oct 20, 2025
Merged

Revert "Generate policy data as JSON"#272362
pwang347 merged 1 commit into
mainfrom
revert-272018-pawang/policies

Conversation

@pwang347
Copy link
Copy Markdown
Member

Reverts #272018

@pwang347 pwang347 marked this pull request as ready for review October 20, 2025 23:03
Copilot AI review requested due to automatic review settings October 20, 2025 23:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reverts the previous changes that introduced JSON-based policy data generation. The revert removes the policy export infrastructure and returns to the previous approach where policy data is parsed directly from TypeScript source files at build time using tree-sitter instead of being pre-generated as JSON.

Key changes:

  • Removed policy export contribution and related infrastructure
  • Removed JSON policy data file and DTO definitions
  • Reverted policy configuration properties to use simple description field instead of structured localization object
  • Removed category field from policy definitions
  • Updated build scripts to parse policies directly from source rather than from JSON

Reviewed Changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vs/workbench/workbench.desktop.main.ts Removed import of policy export contribution
src/vs/workbench/contrib/policyExport/* Deleted policy export contribution and integration test files
src/vs/platform/environment/* Removed exportPolicyData property and command-line argument
src/vs/base/common/policy.ts Removed PolicyCategory, LocalizedValue, and structured localization from IPolicy interface
build/lib/policies.ts Reverted to parse policies directly from TypeScript files using tree-sitter instead of from JSON
build/lib/policies/policyData.jsonc Deleted generated JSON policy data file
build/lib/policies/copyPolicyDto.* Deleted policy DTO copying scripts
build/package.json Removed pre-build script that copied policy DTOs
src/vs/workbench/contrib//browser/.contribution.ts Reverted policy definitions to use simple description instead of localization object
src/vs/workbench/services//test/ Updated test fixtures to remove category and localization properties
build/azure-pipelines//steps/.yml Updated build commands to not pass JSON file argument

@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/platform/environment/common/argv.ts
  • src/vs/platform/environment/common/environment.ts
  • src/vs/platform/environment/common/environmentService.ts
  • src/vs/platform/environment/node/argv.ts

@vs-code-engineering vs-code-engineering Bot added this to the October 2025 milestone Oct 20, 2025
@pwang347 pwang347 merged commit 6025703 into main Oct 20, 2025
28 checks passed
@pwang347 pwang347 deleted the revert-272018-pawang/policies branch October 20, 2025 23:12
pwang347 added a commit that referenced this pull request Oct 20, 2025
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Dec 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants