(fn: (store: VariableStore) => boolean)
| 434 | } |
| 435 | |
| 436 | private findVariableStore(fn: (store: VariableStore) => boolean) { |
| 437 | if (!this._thread) { |
| 438 | return undefined; |
| 439 | } |
| 440 | |
| 441 | const pausedVariables = this._thread.pausedVariables(); |
| 442 | if (pausedVariables && fn(pausedVariables)) { |
| 443 | return pausedVariables; |
| 444 | } |
| 445 | |
| 446 | if (fn(this._thread.replVariables)) { |
| 447 | return this._thread.replVariables; |
| 448 | } |
| 449 | |
| 450 | return undefined; |
| 451 | } |
| 452 | |
| 453 | async _onLocations(params: Dap.LocationsParams): Promise<Dap.LocationsResult> { |
| 454 | const variableStore = this.findVariableStore(v => v.hasVariable(params.locationReference)); |
no test coverage detected