From 51c888d8b8f477bcfbb72e584f37c1cbabf1f8a2 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 28 Sep 2025 11:07:15 +0900 Subject: [PATCH] Freeze object to ensure it's not mutated --- .../chatAgentTools/test/browser/runInTerminalTool.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();