Skip to content

Commit ab4f21a

Browse files
committed
src/goDebugConfiguration: let vscode resolve pick process
There was a bug that used the command specification as a "name" argument to pass into the pick process command. This change makes sure not to attempt to resolve the commands in resolveDebugConfiguration. Change-Id: Iaeb99d2447c8eaebb215babfc27489e46d024b3b Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/322294 Trust: Suzy Mueller <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
1 parent ecf30b7 commit ab4f21a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/goDebugConfiguration.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,11 @@ export class GoDebugConfigurationProvider implements vscode.DebugConfigurationPr
297297
if (!debugConfiguration['processId'] || debugConfiguration['processId'] === 0) {
298298
// The processId is not valid, offer a quickpick menu of all processes.
299299
debugConfiguration['processId'] = parseInt(await pickProcess(), 10);
300-
} else if (typeof debugConfiguration['processId'] === 'string') {
300+
} else if (
301+
typeof debugConfiguration['processId'] === 'string' &&
302+
debugConfiguration['processId'] !== '${command:pickProcess}' &&
303+
debugConfiguration['processId'] !== '${command:pickGoProcess}'
304+
) {
301305
debugConfiguration['processId'] = parseInt(
302306
await pickProcessByName(debugConfiguration['processId']),
303307
10

0 commit comments

Comments
 (0)