Skip to content

Commit a3a5038

Browse files
authored
Add 'noDebug' for selectAndStartDebugging command (microsoft#209893)
* Add 'noDebug' for selectAndStartDebugging command This PR adds an optional 'noDebug' parameter for the 'workbench.action.debug.selectandstart' command. Example Usage: `await vscode.commands.executeCommand('workbench.action.debug.selectandstart', 'node', true)` * Use extenable object type for the options parameter
1 parent 79bdf5d commit a3a5038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/debug/browser/debugCommands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ CommandsRegistry.registerCommand({
711711

712712
CommandsRegistry.registerCommand({
713713
id: SELECT_AND_START_ID,
714-
handler: async (accessor: ServicesAccessor, debugType: string | unknown) => {
714+
handler: async (accessor: ServicesAccessor, debugType: string | unknown, debugStartOptions?: { noDebug?: boolean }) => {
715715
const quickInputService = accessor.get(IQuickInputService);
716716
const debugService = accessor.get(IDebugService);
717717

@@ -723,7 +723,7 @@ CommandsRegistry.registerCommand({
723723
const pick = await provider.pick();
724724
if (pick) {
725725
await configManager.selectConfiguration(pick.launch, pick.config.name, pick.config, { type: provider.type });
726-
debugService.startDebugging(pick.launch, pick.config, { startedByUser: true });
726+
debugService.startDebugging(pick.launch, pick.config, { noDebug: debugStartOptions?.noDebug, startedByUser: true });
727727

728728
return;
729729
}

0 commit comments

Comments
 (0)