mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
debug api: fix _findProcessByUUID
This commit is contained in:
@@ -74,7 +74,7 @@ export class MainThreadDebugService extends MainThreadDebugServiceShape {
|
||||
const processes = this.debugService.getModel().getProcesses();
|
||||
const result = processes.filter(process => process.getId() === processId);
|
||||
if (result.length > 0) {
|
||||
return processes[0]; // there can only be one
|
||||
return result[0]; // there can only be one
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user