MCPcopy
hub / github.com/microsoft/vscode-js-debug / pickProcess

Function pickProcess

src/ui/processPicker.ts:115–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 * the format `pid:port`, where port is optional.
114 */
115export 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

Callers 2

activateFunction · 0.90
attachProcessFunction · 0.85

Calls 1

listProcessesFunction · 0.85

Tested by

no test coverage detected