MCPcopy Create free account
hub / github.com/Snapchat/Valdi / dispose

Method dispose

valdi/vscode_debugger/src/adapter/threads.ts:713–728  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

711 }
712
713 dispose() {
714 this._removeAllScripts(true /* silent */);
715 for (const [debuggerId, thread] of Thread._allThreadsByDebuggerId) {
716 if (thread === this) Thread._allThreadsByDebuggerId.delete(debuggerId);
717 }
718
719 this._executionContextsCleared();
720
721 // Send 'exited' after all other thread-releated events
722 this._dap.with(dap =>
723 dap.thread({
724 reason: 'exited',
725 threadId: this.id,
726 }),
727 );
728 }
729
730 rawLocation(
731 location: Cdp.Runtime.CallFrame | Cdp.Debugger.CallFrame | Cdp.Debugger.Location,

Callers

nothing calls this directly

Calls 5

_removeAllScriptsMethod · 0.95
withMethod · 0.80
threadMethod · 0.80
deleteMethod · 0.65

Tested by

no test coverage detected