()
| 113 | * the format `pid:port`, where port is optional. |
| 114 | */ |
| 115 | export async function pickProcess(): Promise<string | null> { |
| 116 | try { |
| 117 | const item = await listProcesses(); |
| 118 | return item ? item.pidAndPort : null; |
| 119 | } catch (err) { |
| 120 | await vscode.window.showErrorMessage(l10n.t('Process picker failed ({0})', err.message), { |
| 121 | modal: true, |
| 122 | }); |
| 123 | return null; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | // ---- private |
| 128 |
no test coverage detected