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

Single and Double quotes are misused in hint JsonSchema.tasks.quoting #104419

Closed
pingu8007 opened this issue Aug 11, 2020 · 0 comments
Closed

Single and Double quotes are misused in hint JsonSchema.tasks.quoting #104419

pingu8007 opened this issue Aug 11, 2020 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders tasks Task system issues verified Verification succeeded
Milestone

Comments

@pingu8007
Copy link

Warning

This issue occurred on i18n source string JsonSchema.tasks.quoting. Most (if not ALL) language package are ALSO affected by this issue.

Environments

  • VSCode Version: 1.47.3 (user setup)
  • OS Version: Windows_NT x64 10.0.19041

Symptom

Single and Double quotes are misused in hints of Tasks.json::tasks.args.quoting as well as Tasks.json::tasks.commands.quoting

{
   "type": "shell",
   "label": "Echo $HOME",
   "command": "echo"
   "args": [
      {
         "quoting": "strong", // Quotes the argument using the shell's strong quote character (e.g. " under PowerShell and bash).
         "value": "$HOME"
      },
      {
         "quoting": "weak", // Quotes the argument using the shell's weak quote character (e.g. ' under PowerShell and bash).
         "value": "$HOME"
      }
   ]
}

As this article said

Besides escaping, the following values are supported:

  • strong: Uses the shell's strong quoting mechanism, which suppresses all evaluations inside the string. Under PowerShell and for shells under Linux and macOS, single quotes are used ('). For cmd.exe, " is used.
  • weak: Uses the shell's weak quoting mechanism, which still evaluates expression inside the string (for example, environment variables). Under PowerShell and for shells under Linux and macOS, double quotes are used ("). cmd.exe doesn't support weak quoting so VS Code uses " as well.

Additional informations

Does this issue occur when all extensions are disabled?: Yes

@alexr00 alexr00 added bug Issue identified by VS Code Team member as probable bug tasks Task system issues labels Aug 11, 2020
@alexr00 alexr00 added this to the August 2020 milestone Aug 11, 2020
@mjbvz mjbvz added the verified Verification succeeded label Sep 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders tasks Task system issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants
@pingu8007 @mjbvz @alexr00 and others