vscode-npm-scripts icon indicating copy to clipboard operation
vscode-npm-scripts copied to clipboard

Escape Entire "${TASK}" Variable

Open Marshal27 opened this issue 4 years ago • 1 comments

I know this repo has gone idle as VSCode has this out of the box... but VSCode has the same issue as this extension, it cannot run scripts with special characters.

const command: string = ${packageManager} run "${task}";

https://github.com/Duroktar/vscode-npm-scripts/blob/64e5042b76bb29750e5daa6387b9ea573225a2b6/src/executeCommand.ts#L19

Marshal27 avatar Dec 10 '20 02:12 Marshal27

Hmm, interesting. I can probably patch this and make a new release by the end of the weekend. Thanks for letting me know!

Duroktar avatar Dec 10 '20 16:12 Duroktar