diff --git a/arduino-ide-extension/src/browser/theia/debug/debug-session-manager.ts b/arduino-ide-extension/src/browser/theia/debug/debug-session-manager.ts index e26b456b4..d1b2a4b03 100644 --- a/arduino-ide-extension/src/browser/theia/debug/debug-session-manager.ts +++ b/arduino-ide-extension/src/browser/theia/debug/debug-session-manager.ts @@ -62,4 +62,9 @@ export class DebugSessionManager extends TheiaDebugSessionManager { } ); } + // TODO: remove as https://github.com/eclipse-theia/theia/issues/10164 is fixed + async terminateSessions(): Promise { + await super.terminateSessions(); + this.destroy(this.currentSession?.id); + } }