-
Notifications
You must be signed in to change notification settings - Fork 219
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
Prevent stripping of format specifiers from -exec commands. (#1277) #1278
Conversation
Thank you for taking the time to fix this. But this isn't the right spot to fix this problem. I believe what, you want to do is update StripFormatSpecifier to do: if (EngineUtils.IsConsoleExecCmd(exp, out string _, out string _))
{
return exp;
} |
bec2679
to
05f513f
Compare
Thanks for reviewing. Your suggestion corresponds to my solution (2) in #1277, which I was not sure was safe, because |
05f513f
to
88ecee4
Compare
The continuous integration failure does not seem to be related to this pull request — you can see the same failure on #1280. |
@gareth-rees: your changes look good to me @WardenGnaw Do you know what is going on with the PR failure? If I am reading the log correctly, the response looks right:
Here is the test link in case this is helpful:
|
@gareth-rees: BTW: it looks like you still need to sign the CLA |
Yes, just waiting for my employer to agree. Should be able to sign it on Monday. |
Something changed within the build system that is causing this test to fail. It is on my backlog to investigate what changed. |
I've signed the CLA. Sorry about the delay! |
@gareth-rees Thanks so much for taking the time to fix this! |
@gregg-miskelly You're welcome. Thanks for the quick review and merge. |
This prevents MIEngine from stripping (what appear to be) format specifiers from debug console commands prefixed by
-exec
or backtick. Fixes #1277.I'm afraid that I could not figure out how to write a test case, as there do not seem to be any tests cases for
-exec
commands, so I had nothing to go on. If someone can give me advice on writing a test case for this, I'd be happy to add one. In the mean time I tested it by hand; see the screenshot below in Visual Studio Code 1.64.2: