From 131b5800a9d683e60908ac7b3e7cc7ef15725c0d Mon Sep 17 00:00:00 2001 From: Paula Date: Mon, 15 Jul 2024 13:00:52 -0700 Subject: [PATCH] Use [] instead of simple string (#385) --- .../debugger/configuration/providers/fileLaunchWithArgs.ts | 2 +- .../configuration/providers/fileLaunchWithArgs.unit.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/debugger/configuration/providers/fileLaunchWithArgs.ts b/src/extension/debugger/configuration/providers/fileLaunchWithArgs.ts index 52b83d3c..591a34e3 100644 --- a/src/extension/debugger/configuration/providers/fileLaunchWithArgs.ts +++ b/src/extension/debugger/configuration/providers/fileLaunchWithArgs.ts @@ -21,7 +21,7 @@ export async function buildFileWithArgsLaunchDebugConfiguration( request: 'launch', program: '${file}', console: 'integratedTerminal', - args: '${command:pickArgs}', + args: ['${command:pickArgs}'], }; sendTelemetryEvent(EventName.DEBUGGER_CONFIGURATION_PROMPTS, undefined, { configurationType: DebugConfigurationType.launchFileWithArgs, diff --git a/src/test/unittest/configuration/providers/fileLaunchWithArgs.unit.test.ts b/src/test/unittest/configuration/providers/fileLaunchWithArgs.unit.test.ts index 30e0b590..c829a490 100644 --- a/src/test/unittest/configuration/providers/fileLaunchWithArgs.unit.test.ts +++ b/src/test/unittest/configuration/providers/fileLaunchWithArgs.unit.test.ts @@ -28,7 +28,7 @@ suite('Debugging - Configuration Provider File with Arguments', () => { request: 'launch', program: '${file}', console: 'integratedTerminal', - args: '${command:pickArgs}', + args: ['${command:pickArgs}'], }; expect(state.config).to.be.deep.equal(config);