Freeze object to ensure it's not mutated

This commit is contained in:
Daniel Imms
2025-09-28 11:07:15 +09:00
parent 562c7baa79
commit 51c888d8b8
@@ -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();