Skip to content

Commit

Permalink
src/pickProcess.ts: fix platform process commands
Browse files Browse the repository at this point in the history
Somehow the pick process commands ended up not being matched
with the correct platform.

Change-Id: Ie881221e56ccfde4be480fde8bbbb69fe6a88164
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/287773
Trust: Suzy Mueller <[email protected]>
Run-TryBot: Suzy Mueller <[email protected]>
TryBot-Result: kokoro <[email protected]>
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
  • Loading branch information
suzmue committed Jan 29, 2021
1 parent db2234c commit 17e80f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pickProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ async function getAllProcesses(): Promise<AttachItem[]> {
let processCmd: ProcessListCommand;
switch (process.platform) {
case 'win32':
processCmd = psDarwinCommand;
processCmd = wmicCommand;
break;
case 'darwin':
processCmd = psLinuxCommand;
processCmd = psDarwinCommand;
break;
case 'linux':
processCmd = wmicCommand;
processCmd = psLinuxCommand;
break;
default:
// Other operating systems are not supported.
Expand Down

0 comments on commit 17e80f5

Please sign in to comment.