Add new folderTrust setting that the users can enable or disable (#5798)

This commit is contained in:
shrutip90
2025-08-07 14:06:17 -07:00
committed by GitHub
parent 3a3b138195
commit 53f8617b24
5 changed files with 130 additions and 4 deletions

View File

@@ -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 || {}),