Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

VSCode 1.106 just introduced a Linux policy. I wonder if we will support it soon
https://code.visualstudio.com/docs/setup/enterprise#_json-policies-on-linux

You must be logged in to vote

Did some brief searching and it looks like this file is not read in the web version. Workspace service is created with a null policy service: https://github.com/microsoft/vscode/blob/ac4cbdf48759c7d8c3eb91ffe6bb04316e263c57/src/vs/workbench/browser/web.main.ts#L570

Replies: 1 comment · 4 replies

Comment options

That is awesome news! Hopefully they have not made it only work for the electron version, if it works for the web version then it should work for code-server as well but we will have to test.

You must be logged in to vote
4 replies
@locle2302
Comment options

Thanks, @code-asher. I really need this feature on code-server to ensure a policy is in place. Please let me know if it works

@code-asher
Comment options

Hmm I tried to create this file at /etc/vscode/policy.json but it does not have any effect:

{
    "ChatAgentExtensionTools": false,
    "ChatAgentMode": false,
    "ChatMCP": "none",
    "ChatToolsAutoApprove": false,
    "ChatToolsEligibleForAutoApproval": "",
    "McpGalleryServiceUrl": "",
    "AllowedExtensions": "{\"microsoft\": true, \"github\": true}",
    "ExtensionGalleryServiceUrl": "",
    "ChatToolsTerminalEnableAutoApprove": false,
    "EnableFeedback": false,
    "TelemetryLevel": "off",
    "UpdateMode": "none"
}

I also tried creating it at /etc/code-server/policy.json but no luck.

@code-asher
Comment options

Did some brief searching and it looks like this file is not read in the web version. Workspace service is created with a null policy service: https://github.com/microsoft/vscode/blob/ac4cbdf48759c7d8c3eb91ffe6bb04316e263c57/src/vs/workbench/browser/web.main.ts#L570

Answer selected by locle2302
@locle2302
Comment options

Thanks for checking. I don’t want to deploy a private extensions marketplace, but I guess that’s the only option right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.