Skip to content

Enterprise policies: Linux section shows XML examples instead of JSON #9864

@digitarald

Description

@digitarald

The "Linux JSON policies" section in docs/enterprise/policies.md correctly states the format is JSON and the file path is /etc/vscode/policy.json, but the Step 2 examples use macOS plist XML syntax (<key>, <string>, <true/>).

This causes parse failures because VS Code's FilePolicyService uses JSON.parse() to read the file.

Current (incorrect):

<key>AllowedExtensions</key>
<string>{"microsoft": true, "github": true}</string>

<key>EnableTelemetry</key>
<false/>

Expected (correct JSON):

{
  "AllowedExtensions": {"microsoft": true, "github": true},
  "UpdateMode": "start",
  "EnableFeedback": true,
  "EnableTelemetry": false
}

Source confirmation: FilePolicyService uses JSON.parse, and the build fixture is plain JSON.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions