mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Freeze object to ensure it's not mutated
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user