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

Add the option to not show coverage gutters when the exactness score is too low #147

Closed AlCalzone closed 6 years ago

AlCalzone commented 6 years ago

In my project I store the test files (*.test.ts) side-by-side with the files to be tested (*.ts). Naturally, the test files don't have any coverage associated with them.

However, when opening them, coverage-gutters tries to find the best match and selects a completely unrelated coverage to display: coverage I'd prefer if for such low exactness score no coverage would be displayed instead (or made optional), because now the test files are riddled with a bunch of red bars in weird locations: coverage2

ryanluker commented 6 years ago

@AlCalzone Thanks for the issue, I am looking into this issue this weekend. I am planning to either make a feature to not render coverage if less then a certain score or remove the scoring feature and go back to relative path determination for coverage showing.

ryanluker commented 6 years ago

@AlCalzone removed the correctness with #152 in favour of relative pathing, this will be out in a release later today!

AlCalzone commented 6 years ago

Great, looking forward to it. Thanks for resolving it so quickly