Skip to content

Commit 71fb195

Browse files
committed
add structured SourceBreakpoints (see #6)
1 parent 5ac4b94 commit 71fb195

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

protocol/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-debugprotocol",
33
"description": "Npm module with declarations for the Visual Studio Code debug protocol",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
77
"repository": {

protocol/src/debugProtocol.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ export module DebugProtocol {
191191
export interface SetBreakpointsArguments {
192192
/** The source location of the breakpoints; either source.path or source.reference must be specified. */
193193
source: Source;
194-
/** The code locations of the breakpoints */
195-
lines: number[];
194+
/** The code locations of the breakpoints. */
195+
breakpoints?: SourceBreakpoint[];
196+
/** Deprecated: The code locations of the breakpoints. */
197+
lines?: number[];
196198
}
197199
/** Response to "setBreakpoints" request.
198200
Returned is information about each breakpoint created by this request.
@@ -490,6 +492,17 @@ export module DebugProtocol {
490492
variablesReference: number;
491493
}
492494

495+
/** Properties of a breakpoint passed to the setBreakpoints request.
496+
*/
497+
export interface SourceBreakpoint {
498+
/** The source line of the breakpoint. */
499+
line: number;
500+
/** An optional source column of the breakpoint. */
501+
column?: number;
502+
/** An optional expression for conditional breakpoints. */
503+
expression?: string;
504+
}
505+
493506
/** Information about a Breakpoint created in the setBreakpoints request.
494507
*/
495508
export interface Breakpoint {

0 commit comments

Comments
 (0)