From 6201f0a052d372cd43a89a18914e6ffcd5fc2be8 Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Fri, 24 Jul 2026 15:40:22 -0400 Subject: [PATCH] Make dictation enterprise managed (#327340) * Make dictation enterprise managed Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 18f58fa9-d1dc-472f-8b3c-a59f64d8ba2a * Add DictationEnabled to policyData.jsonc Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com> Copilot-Session: 18f58fa9-d1dc-472f-8b3c-a59f64d8ba2a --- build/lib/policies/policyData.jsonc | 15 +++++++++++++++ .../chat/browser/chat.shared.contribution.ts | 15 +++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/build/lib/policies/policyData.jsonc b/build/lib/policies/policyData.jsonc index d1df7469017..3f5211ebe29 100644 --- a/build/lib/policies/policyData.jsonc +++ b/build/lib/policies/policyData.jsonc @@ -915,6 +915,21 @@ "type": "boolean", "default": true, "included": true + }, + { + "key": "dictation.enabled", + "name": "DictationEnabled", + "category": "InteractiveSession", + "minimumVersion": "1.131", + "localization": { + "description": { + "key": "dictation.enabled.policy", + "value": "Controls whether dictation is available across the product (chat input, editor, and terminal)." + } + }, + "type": "boolean", + "default": true, + "included": true } ] } diff --git a/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts b/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts index 8462aef2ea9..96448c86a3f 100644 --- a/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts +++ b/src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts @@ -260,8 +260,19 @@ configurationRegistry.registerConfiguration({ 'dictation.enabled': { type: 'boolean', markdownDescription: nls.localize('dictation.enabled', "Enables dictation across the product (chat input, editor, and terminal). When enabled on a supported platform, a microphone button appears in the chat input and the dictation shortcut becomes available; the on-device transcription model is downloaded on first use and runs locally."), - default: product.quality !== 'stable', - tags: ['experimental'] + default: true, + tags: ['experimental'], + policy: { + name: 'DictationEnabled', + category: PolicyCategory.InteractiveSession, + minimumVersion: '1.131', + localization: { + description: { + key: 'dictation.enabled.policy', + value: nls.localize('dictation.enabled.policy', "Controls whether dictation is available across the product (chat input, editor, and terminal).") + } + }, + } }, 'dictation.model': { type: 'string',