-
Notifications
You must be signed in to change notification settings - Fork 92
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
Display coverage percentage next to files in the file explorer #151
Comments
@AlCalzone thanks for submitting an issue. Other then the make your own tree view (https://github.com/Microsoft/vscode-extension-samples/tree/master/tree-view-sample) I do not know of a way to add to the existing file explorer, myself but I will ask the vscode dev slack group and see if anyone knows more 😄 . |
@AlCalzone looked a little further and got some feedback from the slack channel, microsoft/vscode#54938 it is coming eventually so in the future something like the could be added 😄 |
For the ones who want to have a solution in the mean time, I've created an extension that adds a TreeView to the Test Explorer, it is pretty basic, and in experimental state (Not unit tested, not published...) but I'm using it within a Flutter project. I needed an easy way to visualise my coverage and navigate it. |
@tenninebt thanks for bringing your extension up! looks cool for a first stab at extension building 😁. |
@ryanluker looks like the vscode issue you linked to has been resolved. Is it possible to look at this again? |
@MalachiMackie Thanks for the ping! We can definitely take another look at implementing this for sure. |
If it shows out that it still doesn't work by means of vscode, then integrating koverage tenninebt/vscode-koverage#24 may be a good solution. |
Nice! That would work well, thanks for the mockup too! |
@ryanluker I read the comments on this issue and it seems to me that you are willing to go on with the file explorer decoration (btw I'm kind of curious to know how the 100% coverage would be like, since it only supports 2 characters 😄). But nowadays VSCode has its own Testing view with a tree like view for coverage and it seems to me that what it needs is "just" an extension to feed with the proper information. So wouldn't it be better to use the proper VSCode coverage view, instead of creating a new one over the file explorer? |
Interesting! Not sure what we would use, maybe
Woah, I am all for using Microsoft provided functionality, I will have to look into this!
100% agree, only benefit might be older vscode editor versions without this feature, but I think most developers keep vscode very much near to latest and greatest 🤔. ----- EDIT ----- |
When opening a coverage report, e.g. from
nyc
, I first get an overview of coverage for files and folders. It would be nice to see this percentage next to the files in the file explorer (if that is even possible).The text was updated successfully, but these errors were encountered: