mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-15 07:41:11 +01:00
fix some, but not all leaks wrt DebugSession
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user