vscode-pull-request-github
vscode-pull-request-github copied to clipboard
Show counter of issues/PRs
It would be nice to have counter badge on each panel (and sub-panel) for issues and PRs. I don't know if you load them all at once or in a lazy fashion. If latter is the case, you probably cannot show total number of issues/PRs but you can show them for each sub-panel when you get the list. It's related to #405 but that was closed without a good reason and didn't mention issue-related counters.
We could probably just get a count cheaply without having to load all the PRs.
We use the badge for PR notifications now, so having it also be for PR count would be overloading it. If there's some value you'd get from having a PR count in your editor please do comment and we can discuss other ways this could be done.
You mean that you have badge on the icon of the extension in the side bar? I meant a different thing, something like this. I currently use this extension for my own private project which doesn't have PRs, just a linear kind of development but it would be useful for me to see a number of opened issues. Similar counters can be provided for PR panel as well. Ideally, it should be configurable which counter is reflected on the extension icon.
it would be useful for me to see a number of opened issues
Can you explain why it's useful to know these numbers? We don't lazily load issues, so we could add something there, but we do lazily load PRs as there's a lot more data there and they aren't used for anything else (we eagerly load the issues so that you can get autocompletions when you type #
).
Maybe this will also help you: we now remember your expand/collapse state for the queries in the PRs view, so it might already be nice and scannable for you already.
Can you explain why it's useful to know these numbers?
In my particular case a list of issues reflects the development of the project, it's basically a list of features I need to implement. Knowing their number helps to estimate overall progress. It's similar to a github web interface where we have number of issues and PRs at the top. If you are asking about per-type counter, here's another example. In a large project, a person might not be interested in a total number of PRs but in a number of PRs to which they is assigned to or which are waiting for their review. Actually I've just realized that I forgot to add a counter to the whole "ISSUES" bar which was my original intent.
Ok, I'll re-open. Thank you for the additional details!
Not sure if it goes the same way but it would be also great to have a "pending PR" that simply counts the PRs that are ready to review and shows them in the sidebar badge