()
| 86 | } |
| 87 | |
| 88 | private getTargetSession() { |
| 89 | const active = vscode.debug.activeDebugSession; |
| 90 | if (!active || !isDebugType(active?.type)) { |
| 91 | return this.pickSession(); |
| 92 | } |
| 93 | |
| 94 | if (DebugSessionTracker.isConcreteSession(active)) { |
| 95 | return active; |
| 96 | } |
| 97 | |
| 98 | const children = this.tracker.getChildren(active); |
| 99 | if (children.length === 1) { |
| 100 | return children[0]; |
| 101 | } |
| 102 | |
| 103 | return this.pickSession(); |
| 104 | } |
| 105 | |
| 106 | private pickSession() { |
| 107 | return DebugSessionTracker.pickSession( |
no test coverage detected