()
| 239 | } |
| 240 | |
| 241 | public async getMainThread(): Promise<DebugProtocol.Thread> { |
| 242 | // For tests, we can assume the last thread is the "main" one, as dartdev, pub etc. will all |
| 243 | // be spawned first. |
| 244 | const threadsResponse = await this.threadsRequest(); |
| 245 | const threads = threadsResponse.body.threads; |
| 246 | return threads[threads.length - 1]; |
| 247 | } |
| 248 | |
| 249 | public async resume(): Promise<DebugProtocol.ContinueResponse> { |
| 250 | const thread = await this.getMainThread(); |
no test coverage detected