Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 19 additions & 57 deletions docs/enterprise/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,40 +156,21 @@ Starting from VS Code version 1.99, each release ships with a sample `.mobilecon
1. Open the copied file in a text editor (for example, TextEdit, VS Code, or any XML editor).
1. Edit the policy values according to your requirements:

**String policies** - policies that accept text values or JSON strings:

```xml
<!-- Example: Allow extensions from specific publishers -->
<key>AllowedExtensions</key>
<string>{"microsoft": true, "github": true}</string>

<!-- Example: Set update mode to a specific value -->
<key>UpdateMode</key>
<string>start</string>
Example `policy.json` configuration:

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

> [!IMPORTANT]
> If there's a syntax error in the policy value, the setting will not be applied. You can check the Window log in VS Code for errors (press `kb(workbench.action.showCommands)` and enter **Show Window Log**).

**Boolean policies** - policies that accept true/false values:

```xml
<!-- Example: Enable user feedback -->
<key>EnableFeedback</key>
<true/>

<!-- Example: Disable telemetry -->
<key>EnableTelemetry</key>
<false/>
```

**Remove unwanted policies** - delete both the key and value for any policy you don't want to enforce:

```xml
<!-- To not enforce an update mode policy, remove these lines: -->
<key>UpdateMode</key>
<string>start</string>
```
**Remove unwanted policies** - remove the corresponding JSON property for any policy you don't want to enforce.

Refer to the [policy reference](#vs-code-enterprise-policy-reference) for details on each policy's accepted values and behavior.

Expand Down Expand Up @@ -276,40 +257,21 @@ Starting from VS Code version 1.106, each release ships with a sample `.policy.j

1. Edit the policy values according to your requirements:

**String policies** - policies that accept text values or JSON strings:
Example `policy.json` configuration:

```xml
<!-- Example: Allow extensions from specific publishers -->
<key>AllowedExtensions</key>
<string>{"microsoft": true, "github": true}</string>

<!-- Example: Set update mode to a specific value -->
<key>UpdateMode</key>
<string>start</string>
```json
{
"AllowedExtensions": {"microsoft": true, "github": true},
"UpdateMode": "start",
"EnableFeedback": true,
"EnableTelemetry": false
}
```

> [!IMPORTANT]
> If there's a syntax error in the policy value, the setting will not be applied. You can check the Window log in VS Code for errors (press `kb(workbench.action.showCommands)` and enter **Show Window Log**).

**Boolean policies** - policies that accept true/false values:

```xml
<!-- Example: Enable user feedback -->
<key>EnableFeedback</key>
<true/>

<!-- Example: Disable telemetry -->
<key>EnableTelemetry</key>
<false/>
```

**Remove unwanted policies** - delete both the key and value for any policy you don't want to enforce:

```xml
<!-- To not enforce an update mode policy, remove these lines: -->
<key>UpdateMode</key>
<string>start</string>
```
**Remove unwanted policies** - remove the corresponding JSON property for any policy you don't want to enforce.

Refer to the [policy reference](#vs-code-enterprise-policy-reference) for details on each policy's accepted values and behavior.

Expand Down
76 changes: 19 additions & 57 deletions docs/enterprise/policies.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,40 +156,21 @@ Starting from VS Code version 1.99, each release ships with a sample `.mobilecon
1. Open the copied file in a text editor (for example, TextEdit, VS Code, or any XML editor).
1. Edit the policy values according to your requirements:

**String policies** - policies that accept text values or JSON strings:

```xml
<!-- Example: Allow extensions from specific publishers -->
<key>AllowedExtensions</key>
<string>{"microsoft": true, "github": true}</string>

<!-- Example: Set update mode to a specific value -->
<key>UpdateMode</key>
<string>start</string>
Example `policy.json` configuration:

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

> [!IMPORTANT]
> If there's a syntax error in the policy value, the setting will not be applied. You can check the Window log in VS Code for errors (press `kb(workbench.action.showCommands)` and enter **Show Window Log**).

**Boolean policies** - policies that accept true/false values:

```xml
<!-- Example: Enable user feedback -->
<key>EnableFeedback</key>
<true/>

<!-- Example: Disable telemetry -->
<key>EnableTelemetry</key>
<false/>
```

**Remove unwanted policies** - delete both the key and value for any policy you don't want to enforce:

```xml
<!-- To not enforce an update mode policy, remove these lines: -->
<key>UpdateMode</key>
<string>start</string>
```
**Remove unwanted policies** - remove the corresponding JSON property for any policy you don't want to enforce.

Refer to the [policy reference](#vs-code-enterprise-policy-reference) for details on each policy's accepted values and behavior.

Expand Down Expand Up @@ -276,40 +257,21 @@ Starting from VS Code version 1.106, each release ships with a sample `.policy.j

1. Edit the policy values according to your requirements:

**String policies** - policies that accept text values or JSON strings:
Example `policy.json` configuration:

```xml
<!-- Example: Allow extensions from specific publishers -->
<key>AllowedExtensions</key>
<string>{"microsoft": true, "github": true}</string>

<!-- Example: Set update mode to a specific value -->
<key>UpdateMode</key>
<string>start</string>
```json
{
"AllowedExtensions": {"microsoft": true, "github": true},
"UpdateMode": "start",
"EnableFeedback": true,
"EnableTelemetry": false
}
```

> [!IMPORTANT]
> If there's a syntax error in the policy value, the setting will not be applied. You can check the Window log in VS Code for errors (press `kb(workbench.action.showCommands)` and enter **Show Window Log**).

**Boolean policies** - policies that accept true/false values:

```xml
<!-- Example: Enable user feedback -->
<key>EnableFeedback</key>
<true/>

<!-- Example: Disable telemetry -->
<key>EnableTelemetry</key>
<false/>
```

**Remove unwanted policies** - delete both the key and value for any policy you don't want to enforce:

```xml
<!-- To not enforce an update mode policy, remove these lines: -->
<key>UpdateMode</key>
<string>start</string>
```
**Remove unwanted policies** - remove the corresponding JSON property for any policy you don't want to enforce.

Refer to the [policy reference](#vs-code-enterprise-policy-reference) for details on each policy's accepted values and behavior.

Expand Down