-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
For calls to vscode.tasks.executeTask that use shell tasks, treat command as we treat the arguments in terms of the use of ShellQuotedString. #10997
Conversation
…alue to the backend. And in the backend, quote strongly. Signed-off-by: Jose Diaz <[email protected]> Added test to convert shell task with quoted command
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.
@jdmchp thank you for your first contribution to the project!
Please be sure to address the test failures introduced with the changes and we will review shortly afterwards :)
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 changes work well for me, I confirmed that it works when using my custom extension
(shell-quote-0.0.1.zip). I only have minor commands about the code.
…ed getCommand call in type-converters.ts
Hello @vince-fugnitto , I pushed changes using the feedback you gave me. |
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.
@jdmchp thank you for your patience and first contribution to the project! :)
What it does
This pull request fixes #10805
It basically removes the limitation of a command having to be a string.
It does this by treating the command the same way as the arguments are currently treated: for
ShellQuotedString
s keep the value of the command, and then later on in the backend, quote strongly.The reason for this fix is to allow the ms-vscode.makefile-tools extension to work with Theia. This extension runs make and uses a
ShellQuotedString
as a command.How to test
Try to use the ms-vscode.makefile-tools extension, it will not work. Apply the patch, it will start working.
Before the patch, any call to
vscode.tasks.executeTask
where a command is passed as aShellQuotedString
would fail. For example:would fail with:
Review checklist
Commands with spaces, for example, now can be passed to
executeTask
and they will work OK in windows or *nix.