{"push_id":927069912,"size":2,"distinct_size":2,"ref":"refs/heads/rkeithhill/fix-getvariables-failed","head":"164a14ebdaa60c76f4b07186e276a2e81399b6ae","before":"0173ade8ebd26221fac89f0a1776bb014a5e259b","commits":[{"sha":"b1e0e2d6e5f5f52e71d8960d23ec474785fed0d5","author":{"email":"0d2625f857d70608b099769b56c9bd4c879a9b1b@hotmail.com","name":"Keith Hill"},"message":"Fix for Get-Variable -Scope doesn't always work.\n\nIdeally we should be using CallStackFrame.GetFrameVariables() but it currently seems to be broken.  We've been informed that using Get-Variable -Scope <num> isn't great because scope numbers and frames don't always line up.  For instance, dot source introducing a new stack frame but not a new scope.  But until GetFrameVariables is fixed in a future drop, we have no option but to use Get-Variable -Scope <num>.  This will result in stack frames that have no Auto or Local variables.  But the good news is that the debug host will no longer crash.  :-)\n\nBTW this commit introduces a new optional parameter on PowerShellContext.ExecuteCommand().  While there is a parameter to suppress \"output\" there was no parameter to suppress \"errors\" from being written to the debug console.  I see no benefit in littering the user's debug console with a bunch of \"get-variable : The scope number '#' exceeds the number of active scopes\".  So there is now a \"sendErrorToHost\" parameter that defaults to true.  However, even when that parameter is set to false, the error info shows up in the DebugAdapter.log file.","distinct":true,"url":"https://api.github.com/repos/rkeithhill/PowerShellEditorServices/commits/b1e0e2d6e5f5f52e71d8960d23ec474785fed0d5"},{"sha":"164a14ebdaa60c76f4b07186e276a2e81399b6ae","author":{"email":"0d2625f857d70608b099769b56c9bd4c879a9b1b@hotmail.com","name":"Keith Hill"},"message":"Merge branch 'rkeithhill/fix-getvariables-failed' of https://github.com/rkeithhill/PowerShellEditorServices into rkeithhill/fix-getvariables-failed","distinct":true,"url":"https://api.github.com/repos/rkeithhill/PowerShellEditorServices/commits/164a14ebdaa60c76f4b07186e276a2e81399b6ae"}]}