diff options
| author | shrutip90 <[email protected]> | 2025-08-07 14:06:17 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-07 21:06:17 +0000 |
| commit | 53f8617b249c9f0443f5082a293a30504a118030 (patch) | |
| tree | 9f32509641300a465fad26d21408fa4b8c6ca842 /packages/cli/src/config/settings.ts | |
| parent | 3a3b1381950fb3aab09f71e0ad1662a4f77b3c43 (diff) | |
Add new folderTrust setting that the users can enable or disable (#5798)
Diffstat (limited to 'packages/cli/src/config/settings.ts')
| -rw-r--r-- | packages/cli/src/config/settings.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/cli/src/config/settings.ts b/packages/cli/src/config/settings.ts index 8005ad65..a3bd8d47 100644 --- a/packages/cli/src/config/settings.ts +++ b/packages/cli/src/config/settings.ts @@ -113,10 +113,14 @@ export interface Settings { // Flag to be removed post-launch. ideModeFeature?: boolean; - folderTrustFeature?: boolean; /// IDE mode setting configured via slash command toggle. ideMode?: boolean; + // Flag to be removed post-launch. + folderTrustFeature?: boolean; + // Setting to track whether Folder trust is enabled. + folderTrust?: boolean; + // Setting to track if the user has seen the IDE integration nudge. hasSeenIdeIntegrationNudge?: boolean; @@ -178,9 +182,13 @@ export class LoadedSettings { const user = this.user.settings; const workspace = this.workspace.settings; + // folderTrust is not supported at workspace level. + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { folderTrust, ...workspaceWithoutFolderTrust } = workspace; + return { ...user, - ...workspace, + ...workspaceWithoutFolderTrust, ...system, customThemes: { ...(user.customThemes || {}), |
