Skip to content
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

Work around #57452 by allowing a raw string for windows shell args #57971

Merged
merged 3 commits into from
Sep 6, 2018

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Sep 5, 2018

Updated terminal.integrated.shellArgs.windows to allow either a string or array of strings to work around logic in node-pty that doesn't correctly escape quotes.

Part of #57452

@alexr00 alexr00 requested a review from Tyriar September 5, 2018 16:24
type: 'array',
items: {
type: 'string',
description: nls.localize('terminal.integrated.shellArgs.windows.array', "An array of string of argments to use when on the Windows terminal. [Read more about configuring the shell](https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration).")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we leave this as terminal.integrated.shellArgs.windows it will save the string being re-localized

},
{
type: 'string',
description: nls.localize('terminal.integrated.shellArgs.windows.string', "A single string of argments to use when on the Windows terminal. [Read more about configuring the shell](https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration)."),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should explain that the string is in "command-line" format, as described in https://msdn.microsoft.com/en-au/08dfcab2-eb6e-49a4-80eb-87d4076c98c6

@Tyriar Tyriar added this to the September 2018 milestone Sep 5, 2018
@alexr00 alexr00 merged commit 6542454 into master Sep 6, 2018
@Tyriar Tyriar deleted the alexr00/stringTerminalArgs branch September 10, 2018 14:13
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants