diff options
| author | shrutip90 <[email protected]> | 2025-08-13 11:06:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-13 18:06:31 +0000 |
| commit | 38876b738f4c9ef8bd1b839d5e33580486e9a089 (patch) | |
| tree | 485acb25444b45b12250146cbefaf39e508c5e83 /packages/cli/src/config/config.ts | |
| parent | b61a63aef4bcce9cb56fe46f10f0dc90b8fd6597 (diff) | |
Add support for trustedFolders.json config file (#6073)
Diffstat (limited to 'packages/cli/src/config/config.ts')
| -rw-r--r-- | packages/cli/src/config/config.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 636696fa..296d140d 100644 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -35,6 +35,8 @@ import { getCliVersion } from '../utils/version.js'; import { loadSandboxConfig } from './sandboxConfig.js'; import { resolvePath } from '../utils/resolvePath.js'; +import { isWorkspaceTrusted } from './trustedFolders.js'; + // Simple console logger for now - replace with actual logger if available const logger = { // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -317,8 +319,9 @@ export async function loadCliConfig( const ideMode = settings.ideMode ?? false; const folderTrustFeature = settings.folderTrustFeature ?? false; - const folderTrustSetting = settings.folderTrust ?? false; + const folderTrustSetting = settings.folderTrust ?? true; const folderTrust = folderTrustFeature && folderTrustSetting; + const trustedFolder = folderTrust ? isWorkspaceTrusted() : true; const allExtensions = annotateActiveExtensions( extensions, @@ -523,6 +526,7 @@ export async function loadCliConfig( folderTrustFeature, folderTrust, interactive, + trustedFolder, }); } |
