(session: vscode.DebugSession)
| 80 | } |
| 81 | |
| 82 | public static RemoveSession(session: vscode.DebugSession) { |
| 83 | const s = CDebugSession.FindSession(session); |
| 84 | if (s) { |
| 85 | s.status = 'exited'; |
| 86 | s.remove(); |
| 87 | CDebugSession.CurrentSessions = CDebugSession.CurrentSessions.filter((s) => s.session.id !== session.id); |
| 88 | } else { |
| 89 | console.error(`Where did session ${session.id} go?`); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | public static FindSession(session: vscode.DebugSession) { |
| 94 | return CDebugSession.FindSessionById(session.id); |
no test coverage detected