Skip to content

Commit 9234e3f

Browse files
committed
Mark the "Auto" variable scope as not expensive
This change causes the "Auto" variable scope to be marked as not 'expensive' in the VS Code debug protocol so that it is always expanded by default in VS Code's debug client UI.
1 parent 2670587 commit 9234e3f

File tree

1 file changed

+2
-1
lines changed
  • src/PowerShellEditorServices.Protocol/DebugAdapter

1 file changed

+2
-1
lines changed

src/PowerShellEditorServices.Protocol/DebugAdapter/Scope.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public static Scope Create(VariableScope scope)
3030
Name = scope.Name,
3131
VariablesReference = scope.Id,
3232
// Temporary fix for #95 to get debug hover tips to work well at least for the local scope.
33-
Expensive = (scope.Name != VariableContainerDetails.LocalScopeName)
33+
Expensive = ((scope.Name != VariableContainerDetails.LocalScopeName) &&
34+
(scope.Name != VariableContainerDetails.AutoVariablesName))
3435
};
3536
}
3637
}

0 commit comments

Comments
 (0)