Repository navigation
fix #113750 - #113840
fix #113750#113840
Conversation
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
Thanks for the PR!
| @@ -316,6 +316,9 @@ export async function createTask(context: ExtensionContext, script: NpmTaskDefin | |||
|
|
|||
| const packageManager = await getPackageManager(context, folder.uri, showWarning); | |||
There was a problem hiding this comment.
Adding quotes only works if you also use ShellQuoting.Strong in this case.
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
I had to use ShellQuoting to get this to work. While switching over to that, I also decided to use args, so that only the argument that needed the ShellQuoting received it.
|
Jonathan Mataloni (@jonamat) you just need to take care of #113840 (comment) then I'll merge. |
|
Alex Ross (@alexr00) Done. |
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
When I try the debugging from the npm scripts view with a script that includes a space it works just fine. Looks like debug's default for how to handle spaces is good.
|
Yes, debug's "StartDebugging" tries to handle escaping and quoting differences of various shells automatically. |
This PR fixes #113750
I've wrapped the script names in quotes in all calls to createTask and inside startDebugging.
I'm not familiar with vscode oss so I'm not sure about the side effects of this fix but it seems to work