Skip to content

Commit 976932e

Browse files
feat: disable workspace trust by default
1 parent 1f06229 commit 976932e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,14 +730,14 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
730730
properties: {
731731
[WORKSPACE_TRUST_ENABLED]: {
732732
type: 'boolean',
733-
default: true,
733+
default: false,
734734
description: localize('workspace.trust.description', "Controls whether or not Workspace Trust is enabled within VS Code."),
735735
tags: [WORKSPACE_TRUST_SETTING_TAG],
736736
scope: ConfigurationScope.APPLICATION,
737737
},
738738
[WORKSPACE_TRUST_STARTUP_PROMPT]: {
739739
type: 'string',
740-
default: 'once',
740+
default: 'never',
741741
description: localize('workspace.trust.startupPrompt.description', "Controls when the startup prompt to trust a workspace is shown."),
742742
tags: [WORKSPACE_TRUST_SETTING_TAG],
743743
scope: ConfigurationScope.APPLICATION,
@@ -750,7 +750,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
750750
},
751751
[WORKSPACE_TRUST_BANNER]: {
752752
type: 'string',
753-
default: 'untilDismissed',
753+
default: 'never',
754754
description: localize('workspace.trust.banner.description', "Controls when the restricted mode banner is shown."),
755755
tags: [WORKSPACE_TRUST_SETTING_TAG],
756756
scope: ConfigurationScope.APPLICATION,
@@ -763,7 +763,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration)
763763
},
764764
[WORKSPACE_TRUST_UNTRUSTED_FILES]: {
765765
type: 'string',
766-
default: 'prompt',
766+
default: 'open',
767767
markdownDescription: localize('workspace.trust.untrustedFiles.description', "Controls how to handle opening untrusted files in a trusted workspace. This setting also applies to opening files in an empty window which is trusted via `#{0}#`.", WORKSPACE_TRUST_EMPTY_WINDOW),
768768
tags: [WORKSPACE_TRUST_SETTING_TAG],
769769
scope: ConfigurationScope.APPLICATION,

0 commit comments

Comments
 (0)