MCPcopy Create free account
hub / github.com/Marus/cortex-debug / RemoveSession

Method RemoveSession

src/frontend/cortex_debug_session.ts:82–91  ·  view source on GitHub ↗
(session: vscode.DebugSession)

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls 2

FindSessionMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected