@@ -119,6 +119,8 @@ public async Task<BreakpointDetails[]> SetLineBreakpoints(
119119 IEnumerable < Breakpoint > configuredBreakpoints =
120120 await this . powerShellContext . ExecuteCommand < Breakpoint > ( psCommand ) ;
121121
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.
122124 resultBreakpointDetails . AddRange (
123125 configuredBreakpoints . Select ( BreakpointDetails . Create ) ) ;
124126 }
@@ -128,12 +130,12 @@ public async Task<BreakpointDetails[]> SetLineBreakpoints(
128130 }
129131
130132 /// <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.
132134 /// </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>
135137 /// <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 (
137139 FunctionBreakpointDetails [ ] breakpoints ,
138140 bool clearExisting = true )
139141 {
@@ -171,6 +173,8 @@ public async Task<FunctionBreakpointDetails[]> SetFunctionBreakpoints(
171173 IEnumerable < Breakpoint > configuredBreakpoints =
172174 await this . powerShellContext . ExecuteCommand < Breakpoint > ( psCommand ) ;
173175
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.
174178 resultBreakpointDetails . AddRange (
175179 configuredBreakpoints . Select ( FunctionBreakpointDetails . Create ) ) ;
176180 }
0 commit comments