-
Notifications
You must be signed in to change notification settings - Fork 234
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
Avoid recording debugger commands in the history #1704
Conversation
The debugger commands haven't changed in eons (at least not since Sergei and I imported Source Depot to GitHub. I'd love to reference them directly but this super helpful class is marked |
Uh oh things are broken. |
Interesting...
I actually wonder if this fixes a regression in the tests when we did the pipeline rewrite. |
1200f62
to
1e8804a
Compare
VariableScope localScope = Array.Find(scopes, s => s.Name == VariableContainerDetails.LocalScopeName); | ||
// TODO: Fix this so it has the second quotes again? |
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.
The quotes are back!
Need to test with PowerShell 5.1. |
1e8804a
to
3cad765
Compare
This changes how we decide to run a given command through `ExecuteInDebugger` or `ExecuteNormally`. It now restricts the former such that it is only used for PowerShell's intrinsic debugger commands (like `s`, `c`, etc.) and the latter is used for any other user command or, more importantly, our own implementation's debugger commands (like when we call `Get-Variable`).
3cad765
to
a759b74
Compare
Ok @PaulHigin yes, it did need to be made case-insensitive. Fixed that. And I tested manually with Windows PowerShell 5.1, all still works as expected! |
Fixed most of PowerShell/vscode-powershell#873 and PowerShell/vscode-powershell#1265 |
This changes how we decide to run a given command through
ExecuteInDebugger
orExecuteNormally
. It now restricts the formersuch that it is only used for PowerShell's intrinsic debugger commands
(like
s
,c
, etc.) and the latter is used for any other user commandor, more importantly, our own implementation's debugger commands (like
when we call
Get-Variable
).