diff --git a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts index 2f76a3ab2c1..e1018e96e87 100644 --- a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts +++ b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/test/browser/runInTerminalTool.test.ts @@ -933,7 +933,7 @@ suite('RunInTerminalTool', () => { suite('getCopilotShellOrProfile', () => { test('should return custom profile when configured', async () => { runInTerminalTool.setBackendOs(OperatingSystem.Windows); - const customProfile = { path: 'C:\\Windows\\System32\\powershell.exe', args: ['-NoProfile'] }; + const customProfile = Object.freeze({ path: 'C:\\Windows\\System32\\powershell.exe', args: ['-NoProfile'] }); setConfig(TerminalChatAgentToolsSettingId.TerminalProfileWindows, customProfile); const result = await runInTerminalTool.getCopilotShellOrProfile();