-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support single-string args
in launch.json
#2621
Comments
Thanks for the report. This makes sense to me. |
Marking this as HelpWanted as I think it would be reasonable for an external contributor to pick this up. |
@findleyr I submitted a change for this with tests if anyone on the team would like to take a look. I couldn't find any existing package that provided a shell-like word splitting, ended up implementing one that is consistent with |
Hello @findleyr , hope this finds you well. I double checked my changes and tests today, and I like where it is and hope that a maintainer is able to provide review. Would love to be able to take advantage of this feature in my own work/personal projects. For context, I tried to implement basic whitespace splitting |
Change https://go.dev/cl/469378 mentions this issue: |
This change adds support for user specifying `args` as a single `string`-typed launch argument in `launch.json`. The argument string is parsed into word arguments with rules consistent with `bash`. No shell expansion is performed. Fixes [#2621](#2621) Change-Id: I26d279ac304afa307bf3023ee8835582bb903a05 GitHub-Last-Rev: 3d5cd26 GitHub-Pull-Request: #2670 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/469378 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com>
Tested it on nightly today and things work as expected. One of the things I didn't test well was the schema intellisense. It looks like VSCode supports |
Change https://go.dev/cl/495816 mentions this issue: |
Is your feature request related to a problem? Please describe.
I'd like the ability to create a
launch.json
that prompts the user for the exact args to be passed through to my debugging program. The user types in the args into the prompt, and the args is passed through to the launching program.For example, if launching

go.exe
with debugger, I expect the user to be able to typetest ./...
in the prompt, and the resulting programgo.exe test ./...
is ran with debugging:My understanding based on this comment, is that VSCode now allows
args
to be either a string-array or a string type. However, it is up to the debugging extension to support the newly-added string type.Desired supported
launch.json
:Currently, this configuration results in the following error:

Describe the solution you'd like
The string-typed
args
should be handled to support this scenario.Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: