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

src/goDebugConfiguration.ts: add support for string typed args #2670

Closed
wants to merge 17 commits into from

Conversation

weikanglim
Copy link
Contributor

@weikanglim weikanglim commented Feb 18, 2023

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 golang/vscode-go#2621

@gopherbot
Copy link
Collaborator

This PR (HEAD: e6ae23b) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from Gopher Robot:

Patch Set 1:

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://go.dev/doc/contribute#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

This PR (HEAD: 48639fa) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

This PR (HEAD: b7c6cd6) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from Hyang-Ah Hana Kim:

Patch Set 3:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@weikanglim weikanglim changed the title src/debugAdapter: add support for string typed args src/goDebugConfiguration.ts: add support for string typed args May 1, 2023
@gopherbot
Copy link
Collaborator

This PR (HEAD: ff4b222) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@weikanglim
Copy link
Contributor Author

@hyangah My apologies. I had misunderstood where the VSCode parsing of the args was happening. The parseArgs logic is moved to goDebugConfiguration.ts now, which is where it should be. I tested it locally (based on the scenario I described in #2621) and everything works as expected. Please let me know if anything additional is needed.

@gopherbot
Copy link
Collaborator

Message from Hyang-Ah Hana Kim:

Patch Set 4: Run-TryBot+1

(3 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from kokoro:

Patch Set 4:

Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit
Logs at:
https://source.cloud.google.com/results/invocations/8e18f31c-1001-49f6-b9df-78af41a5b7c1


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from kokoro:

Patch Set 4: TryBot-Result-1

Kokoro presubmit build finished with status: FAILURE
Logs at: https://source.cloud.google.com/results/invocations/8e18f31c-1001-49f6-b9df-78af41a5b7c1


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

This PR (HEAD: 624b832) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

This PR (HEAD: c4e4391) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

This PR (HEAD: 8cab551) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from WeiKang Lim:

Patch Set 7:

(4 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@weikanglim
Copy link
Contributor Author

@hyangah Apologies for the ping, but if anyone from the team has the chance to review this -- my team is eagerly excited for this feature (if it ends up landing)!

@hyangah
Copy link
Contributor

hyangah commented May 11, 2023

@weikanglim My apologies - our CI is broken and I am looking into it. Once it passes the build, I will approve and merge. Sorry for the delay.

@gopherbot
Copy link
Collaborator

Message from siv Solean:

Patch Set 8:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Hyang-Ah Hana Kim:

Patch Set 8: Code-Review+2

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

This PR (HEAD: 56d13c6) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

This PR (HEAD: 3d5cd26) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/469378 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Collaborator

Message from WeiKang Lim:

Patch Set 10:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Hyang-Ah Hana Kim:

Patch Set 10: Code-Review+2 Run-TryBot+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from kokoro:

Patch Set 10:

Kokoro presubmit build starting for golang/vscode-go/gcp_ubuntu/presubmit
Logs at:
https://source.cloud.google.com/results/invocations/63cbb9ad-fa10-414a-a084-26f071c89f1d


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from kokoro:

Patch Set 10: TryBot-Result+1

Kokoro presubmit build finished with status: SUCCESS
Logs at: https://source.cloud.google.com/results/invocations/63cbb9ad-fa10-414a-a084-26f071c89f1d


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Collaborator

Message from Heschi Kreinick:

Patch Set 10: Code-Review+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/469378.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request May 15, 2023
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>
@gopherbot
Copy link
Collaborator

This PR is being closed because golang.org/cl/469378 has been merged.

@gopherbot gopherbot closed this May 15, 2023
gopherbot pushed a commit that referenced this pull request May 19, 2023
This is a follow-up change from #2670 to update the schema. This avoids intellisense warning squiggly lines when updating `launch.json` while using a `string` type for `args`.

Validated by importing the local `.vsix` extension, and verifying no warnings show up for `string` and `array` args.

Fixes #2621

Change-Id: I13248d65a2a13d4cf2b40921e7af4613ec3ce253
GitHub-Last-Rev: f6fefc3
GitHub-Pull-Request: #2777
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/495816
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
TryBot-Bypass: Hyang-Ah Hana Kim <hyangah@gmail.com>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
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.

Support single-string args in launch.json
3 participants