ryanluker / vscode-coverage-gutters

Display test coverage generated by lcov and xml - works with many languages
https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
MIT License
460 stars 88 forks source link

Cannot toggle breakpoints by clicking in the gutter #288

Closed PieterHartzer closed 3 years ago

PieterHartzer commented 3 years ago

Describe the bug I am aware of the Tips and Tricks to get around the issue but suggest making it narrower When a breakpoint is added before the gutter coverage appear you cannot remove it by clicking on the breakpoint. You can also not add breakpoints where the coverage indicators appear in the gutter. Adding breakpoints using the shortcut works.

To Reproduce Steps to reproduce the behaviour:

  1. Run the tests to generate the coverage file.
  2. Open a source code file.
  3. Enable the display of code coverage in the gutter (ctrl + shift + 7).
  4. Add a breakpoint by clicking on the gutter where there are colours indicating coverage.

Expected behaviour A breakpoint should be toggled.

Desktop (please complete the following information):

Additional context The problem seems to be that the coloured bars indicating coverage doesn't allow click-through and is thus in the way and intercepts the click. A possible solution would be to make the bars slightly narrower to allow for clicking next to them.

PieterHartzer commented 3 years ago

I realised that it's an issue with VS code

ryanluker commented 3 years ago

@PieterHartzer Thanks for submitting a ticket! I see you figured out the issue, in the meantime, you can find the workaround in the readme under tips and tricks. https://github.com/ryanluker/vscode-coverage-gutters#tips-and-tricks