{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/2115","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/2115/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/2115/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/2115/events","html_url":"https://github.com/Microsoft/vscode-go/issues/2115","id":379515294,"node_id":"MDU6SXNzdWUzNzk1MTUyOTQ=","number":2115,"title":"go.testFlags are not applied correctly when using the \"debug test\" code lens","user":{"login":"segevfiner","id":24731903,"node_id":"MDQ6VXNlcjI0NzMxOTAz","avatar_url":"https://avatars0.githubusercontent.com/u/24731903?v=4","gravatar_id":"","url":"https://api.github.com/users/segevfiner","html_url":"https://github.com/segevfiner","followers_url":"https://api.github.com/users/segevfiner/followers","following_url":"https://api.github.com/users/segevfiner/following{/other_user}","gists_url":"https://api.github.com/users/segevfiner/gists{/gist_id}","starred_url":"https://api.github.com/users/segevfiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segevfiner/subscriptions","organizations_url":"https://api.github.com/users/segevfiner/orgs","repos_url":"https://api.github.com/users/segevfiner/repos","events_url":"https://api.github.com/users/segevfiner/events{/privacy}","received_events_url":"https://api.github.com/users/segevfiner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-11T11:51:15Z","updated_at":"2018-11-13T22:09:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Steps to Reproduce:\r\n\r\n1. Save:\r\n\r\n`foo_test.go`:\r\n```go\r\npackage foo\r\n\r\nimport (\r\n\t\"flag\"\r\n\t\"testing\"\r\n)\r\n\r\nvar ok = flag.Bool(\"ok\", false, \"\")\r\n\r\nfunc TestFoo(t *testing.T) {\r\n\tif !*ok {\r\n\t\tt.Fail()\r\n\t}\r\n}\r\n```\r\n\r\n`.vscode/settings.json`:\r\n```json\r\n{\r\n    \"go.testFlags\": [\"-ok\"]\r\n}\r\n\r\n```\r\n2. Open `foo_test.go` and click the \"run test\" code lens, the test will pass.\r\n3. Click the \"debug test\" code lens, the test will fail.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/438457344","html_url":"https://github.com/Microsoft/vscode-go/issues/2115#issuecomment-438457344","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/2115","id":438457344,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODQ1NzM0NA==","user":{"login":"brycekahle","id":1010430,"node_id":"MDQ6VXNlcjEwMTA0MzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1010430?v=4","gravatar_id":"","url":"https://api.github.com/users/brycekahle","html_url":"https://github.com/brycekahle","followers_url":"https://api.github.com/users/brycekahle/followers","following_url":"https://api.github.com/users/brycekahle/following{/other_user}","gists_url":"https://api.github.com/users/brycekahle/gists{/gist_id}","starred_url":"https://api.github.com/users/brycekahle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycekahle/subscriptions","organizations_url":"https://api.github.com/users/brycekahle/orgs","repos_url":"https://api.github.com/users/brycekahle/repos","events_url":"https://api.github.com/users/brycekahle/events{/privacy}","received_events_url":"https://api.github.com/users/brycekahle/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T22:09:42Z","updated_at":"2018-11-13T22:09:42Z","author_association":"CONTRIBUTOR","body":"A lot of limitations of the `debug test` code lens are because it uses a hard-coded launch config:\r\nhttps://github.com/Microsoft/vscode-go/blob/6d3476914e841008e1692960b3f64904b5684b69/src/goRunTestCodelens.ts#L18-L26"}}
{"actor":{"display_login":"brycekahle"}}