Skip to content

Commit a3b32f8

Browse files
thegeckotolusha
authored andcommitted
Support deprecated 'lines' object for breakpoints
Signed-off-by: Rob Moran <[email protected]>
1 parent 7bc611a commit a3b32f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/debug/src/browser/breakpoint/breakpoint-applier.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export class BreakpointsApplier {
3737
for (const breakpointsBySource of DebugUtils.groupBySource(breakpoints).values()) {
3838
const args: DebugProtocol.SetBreakpointsArguments = {
3939
source: breakpointsBySource[0].source!,
40-
breakpoints: breakpointsBySource.map(b => b.origin as DebugProtocol.SourceBreakpoint)
40+
breakpoints: breakpointsBySource.map(b => b.origin as DebugProtocol.SourceBreakpoint),
41+
// Although marked as deprecated, some debug adapters still use lines
42+
lines: breakpointsBySource.map(b => (b.origin as DebugProtocol.SourceBreakpoint).line)
4143
};
4244

4345
// The array elements are in the same order as the elements

0 commit comments

Comments
 (0)