diff --git a/agent/src/AgentWorkspaceConfiguration.ts b/agent/src/AgentWorkspaceConfiguration.ts index ac8df4a37045..58e504f1e970 100644 --- a/agent/src/AgentWorkspaceConfiguration.ts +++ b/agent/src/AgentWorkspaceConfiguration.ts @@ -116,7 +116,7 @@ export class AgentWorkspaceConfiguration implements vscode.WorkspaceConfiguratio function mergeWithBaseConfig(config: any) { for (const [key, value] of Object.entries(config)) { - if (typeof value === 'object') { + if (typeof value === 'object' && !Array.isArray(value)) { const existing = _.get(baseConfig, key) ?? {} const merged = _.merge(existing, value) _.set(baseConfig, key, merged)