fix some, but not all leaks wrt DebugSession

This commit is contained in:
Johannes
2023-08-31 16:46:25 +02:00
parent 6b49d155ca
commit 170f7cd76e
4 changed files with 22 additions and 5 deletions
@@ -129,6 +129,11 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
const handle = this._debugAdaptersHandleCounter++;
const da = new ExtensionHostDebugAdapter(this, handle, this._proxy, session);
this._debugAdapters.set(handle, da);
const d = session.onDidEndAdapter(e => {
this._debugAdapters.delete(handle);
d.dispose();
});
return da;
}