Skip to content

Conversation

@int19h
Copy link
Contributor

@int19h int19h commented Aug 4, 2022

Fix #1001: Enable controlling shell expansion via "argsCanBeInterpretedByShell"

Fix #357: "argsExpansion" does not do what it says in VSCode

Treat non-array "args" in debug config as a request to prevent shell argument escaping and allow shell expansion.

Remove "argsExpansion".

…InterpretedByShell"

Fix microsoft#357: "argsExpansion" does not do what it says in VSCode

Treat non-array "args" in debug config as a request to prevent shell argument escaping and allow shell expansion.

Remove "argsExpansion".
@int19h int19h requested a review from karthiknadig as a code owner August 4, 2022 00:31
@int19h
Copy link
Contributor Author

int19h commented Aug 4, 2022

@karthiknadig I have manually tested this on the most recent VSCode insiders.

The only change on vscode-python side is to update the JSON schema to allow "args" to be single string rather than an array. It would be nice if there's also a way to specify that this isn't supported for "internalConsole", but if not, no big deal - the error message should be clear enough if somebody tries that.

@karthiknadig
Copy link
Member

/cc @paulacamargo25 Can you make the change that Pavel recommended here?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@int19h int19h merged commit 4f6638b into microsoft:main Aug 4, 2022
@int19h int19h deleted the 1001 branch August 4, 2022 20:49
paulacamargo25 added a commit to microsoft/vscode-python that referenced this pull request Aug 31, 2022
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable controlling shell expansion via "argsCanBeInterpretedByShell" "argsExpansion" does not do what it says in VSCode

2 participants