From f886dd4fb84bb82478bfab4a68cd3f31b32f5eb5 Mon Sep 17 00:00:00 2001 From: isidor Date: Fri, 28 Dec 2018 15:04:37 +0100 Subject: [PATCH] debug: store adapter data better fixes #65758 --- src/vs/workbench/parts/debug/common/debugModel.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vs/workbench/parts/debug/common/debugModel.ts b/src/vs/workbench/parts/debug/common/debugModel.ts index 073c512c03f..f0100fbc7db 100644 --- a/src/vs/workbench/parts/debug/common/debugModel.ts +++ b/src/vs/workbench/parts/debug/common/debugModel.ts @@ -644,6 +644,13 @@ export class Breakpoint extends BaseBreakpoint implements IBreakpoint { return data ? data.endColumn : undefined; } + setSessionData(sessionId: string, data: DebugProtocol.Breakpoint): void { + super.setSessionData(sessionId, data); + if (!this._adapterData) { + this._adapterData = this.adapterData; + } + } + toJSON(): any { const result = super.toJSON(); result.uri = this.uri;