File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/PowerShellEditorServices/Debugging Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,7 @@ private async Task ClearBreakpointsInFile(ScriptFile scriptFile)
306
306
307
307
private async Task FetchStackFramesAndVariables ( )
308
308
{
309
- // Avoid using 0 as it indicates a variable node with no children.
310
- this . nextVariableId = 1 ;
309
+ this . nextVariableId = VariableDetailsBase . FirstVariableId ;
311
310
this . variables = new List < VariableDetailsBase > ( ) ;
312
311
313
312
// Create a dummy variable for index 0, should never see this.
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ namespace Microsoft.PowerShell.EditorServices
12
12
public abstract class VariableDetailsBase
13
13
{
14
14
/// <summary>
15
- /// Provides a constant that is used as the starting variable ID for all
15
+ /// Provides a constant that is used as the starting variable ID for all.
16
+ /// Avoid 0 as it indicates a variable node with no children.
16
17
/// variables.
17
18
/// </summary>
18
19
public const int FirstVariableId = 1 ;
You can’t perform that action at this time.
0 commit comments