@@ -119,6 +119,8 @@ public async Task<BreakpointDetails[]> SetLineBreakpoints(
119
119
IEnumerable < Breakpoint > configuredBreakpoints =
120
120
await this . powerShellContext . ExecuteCommand < Breakpoint > ( psCommand ) ;
121
121
122
+ // The order in which the breakpoints are returned is significant to the
123
+ // VSCode client and should match the order in which they are passed in.
122
124
resultBreakpointDetails . AddRange (
123
125
configuredBreakpoints . Select ( BreakpointDetails . Create ) ) ;
124
126
}
@@ -128,12 +130,12 @@ public async Task<BreakpointDetails[]> SetLineBreakpoints(
128
130
}
129
131
130
132
/// <summary>
131
- /// Sets the list of line breakpoints for the current debugging session.
133
+ /// Sets the list of command breakpoints for the current debugging session.
132
134
/// </summary>
133
- /// <param name="breakpoints">BreakpointDetails for each breakpoint that will be set.</param>
134
- /// <param name="clearExisting">If true, causes all existing breakpoints to be cleared before setting new ones.</param>
135
+ /// <param name="breakpoints">BreakpointDetails for each command breakpoint that will be set.</param>
136
+ /// <param name="clearExisting">If true, causes all existing function breakpoints to be cleared before setting new ones.</param>
135
137
/// <returns>An awaitable Task that will provide details about the breakpoints that were set.</returns>
136
- public async Task < FunctionBreakpointDetails [ ] > SetFunctionBreakpoints (
138
+ public async Task < FunctionBreakpointDetails [ ] > SetCommandBreakpoints (
137
139
FunctionBreakpointDetails [ ] breakpoints ,
138
140
bool clearExisting = true )
139
141
{
@@ -171,6 +173,8 @@ public async Task<FunctionBreakpointDetails[]> SetFunctionBreakpoints(
171
173
IEnumerable < Breakpoint > configuredBreakpoints =
172
174
await this . powerShellContext . ExecuteCommand < Breakpoint > ( psCommand ) ;
173
175
176
+ // The order in which the breakpoints are returned is significant to the
177
+ // VSCode client and should match the order in which they are passed in.
174
178
resultBreakpointDetails . AddRange (
175
179
configuredBreakpoints . Select ( FunctionBreakpointDetails . Create ) ) ;
176
180
}
0 commit comments