(event: VMEvent)
| 1377 | |
| 1378 | // IsolateStart, IsolateRunnable, IsolateExit, IsolateUpdate, ServiceExtensionAdded |
| 1379 | public async handleIsolateEvent(event: VMEvent): Promise<void> { |
| 1380 | // Don't process any events while the debugger is still running init code. |
| 1381 | await this.debuggerInit; |
| 1382 | |
| 1383 | const kind = event.kind; |
| 1384 | if (kind === "IsolateStart" || kind === "IsolateRunnable") { |
| 1385 | await this.threadManager.registerThread(event.isolate!, kind); |
| 1386 | } else if (kind === "IsolateExit") { |
| 1387 | this.threadManager.handleIsolateExit(event.isolate!); |
| 1388 | } else if (kind === "ServiceExtensionAdded") { |
| 1389 | this.handleServiceExtensionAdded(event); |
| 1390 | } |
| 1391 | } |
| 1392 | |
| 1393 | // Service |
| 1394 | public async handleServiceEvent(event: VMEvent) { |
nothing calls this directly
no test coverage detected