-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
service/dap: accept a string list as launch request's buildFlags #3496
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Actually, it's making TestBadLaunchRequest fail. |
Changed to detect the error from parsing time. |
Only sometimes? That's weird. Are you sure it's 1.21 and not 1.22? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I was using 1.21.1, but @suzmue pointed out this could be something strange in our corp machine or XCode version (I was on XCode 14). So, we don't need to worry about it yet. |
622c3db
to
a1c9615
Compare
This change accepts both string type and []string. dap.BuildFlags is a union of string and []string. Fixes go-delve#2718 For golang/vscode-go#1831, golang/vscode-go#1027
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This change accepts both string type and []string type (actually, []interface{} type due to Go's json decoding behavior).
Fixes #2718
For golang/vscode-go#1831, golang/vscode-go#1027
cc @suzmue