debug: store adapter data better

fixes #65758
pull/65786/head
isidor 2018-12-28 15:04:37 +01:00
parent 77882bfffc
commit f886dd4fb8
1 changed files with 7 additions and 0 deletions

View File

@ -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;