Skip to content

Commit

Permalink
Refactor pickProcess to return string
Browse files Browse the repository at this point in the history
VSCode expects pid returned by pickProcess to be of type string. Since a number has been returned instead of string, VSCode throws error when trying to attach to a process.
  • Loading branch information
harikrishnan94 committed Jun 16, 2018
1 parent d13a20c commit bafca2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ class Extension implements TextDocumentContentProvider, DebugConfigurationProvid
}));
}

async pickProcess(currentUserOnly: boolean): Promise<number> {
async pickProcess(currentUserOnly: boolean): Promise<string> {
let items = util.getProcessList(currentUserOnly);
let item = await window.showQuickPick(items);
if (item) {
return item.pid;
return item.pid.toString();
} else {
throw Error('Cancelled');
}
Expand Down

0 comments on commit bafca2b

Please sign in to comment.