-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the built-in $null
was watched its value was incorrect
#2097
Conversation
Just curious - does this PR address other cases in which |
Hm, I hadn't tried |
Ha no problem - |
203877b
to
dfb8199
Compare
This fixes the evaluation of `$null` itself and variables that don't exist such that they display correctly in the watched variables pane of the debugger. As noted, the issue was that we were doing a string join even for a single (potentially null) value. This also fixes the excess quotes bug around a single value.
dfb8199
to
3dd91d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No idea why its value was
""
, but it was, so we special case it and return$null
just like you get from watched variables that were assigned the built-in$null
.Resolves PowerShell/vscode-powershell#4816.