vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

code coverage: gutter type coverage covers breakpoints

Open saurabhsuniljain opened this issue 4 years ago • 7 comments

When code coverage gutter is displayed, not able to add/delete/modify breakpoints, there was an already issue filed for this in the old repo.

Old Issue: https://github.com/microsoft/vscode-go/issues/1715

If there is any workaround anyone has found please let me know.

saurabhsuniljain avatar Aug 31 '20 07:08 saurabhsuniljain

The upstream issue is https://github.com/microsoft/vscode/issues/5923 and still no solution.

Wonder if we can come up with a less intrusive highlight display.

/cc @pjweinbgo

hyangah avatar Aug 31 '20 13:08 hyangah

For, now I found a workaround you can change the type for code coverage in setting as highlight.

It is not a good experience but it is a workaround for when you want to debug and check code coverage at the same time.

saurabhsuniljain avatar Aug 31 '20 18:08 saurabhsuniljain

we could have a statusBar-only choice, perhaps. That's the red/green marks on the right.

On Mon, Aug 31, 2020 at 2:29 PM Saurabh Jain [email protected] wrote:

For, now I found a workaround you can change the type for code coverage in setting as highlight.

It is not a good experience but it is a workaround for when you want to debug and check code coverage at the same time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/golang/vscode-go/issues/588#issuecomment-683951667, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACL4QJCLPAM7W5YUCO6O5MTSDPTYRANCNFSM4QQF7WTA .

pjweinbgo avatar Aug 31 '20 22:08 pjweinbgo

You can use F9 for setting the breakpoint. Or depending on your keybinding what "set breakpoint" is mapped to

schuster-rainer avatar Oct 14 '20 20:10 schuster-rainer

Thanks @thomaspaulin Looks like the issue that caused gutter to cover breakpoints is indeed resolved. Screenshot 2024-01-05 at 11 45 37 AM

However, https://github.com/microsoft/vscode/issues/95992 is still open - setting new breakpoints still doesn't work. :-( Users still can add new breakpoints with F9.

hyangah avatar Jan 05 '24 16:01 hyangah

Fyi we are finalizing (in next week's 1.88 release) official support for test coverage, and using that avoids the issue https://github.com/microsoft/vscode/issues/123713

connor4312 avatar Mar 26 '24 20:03 connor4312