This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There are two problems with the category nodes today: * First, category nodes are not removed when the number of suggestions goes down to zero. A recent API change makes it a lot easier to make that happen now, since we now know the difference between a remove followed by an add, and a remove followed by nothing. * Second, when you switch to a different file, there's a brief pause (2 seconds) when the providers don't do anything; then they kick into gear. This is so that quick file traversal will not cause suggestion updates. However, when you switch away from a file, the suggestions are removed immediately. Thus, there's an interval when you see "(0)" (zero-count) after each file, even though the true state is "(updating)". Implementing something like that - either remove the count entirely (and show it when the scan is performed) or do something more explicit. The key is for the user to know the difference between "this file has no suggestions" and "this file hasn't been scanned yet, wait another second".
I've sort of fixed the second problem: I now remove the (0) part when you hide a file. The only thing that isn't fixed is that for files where the scan results in 0 hits, you don't get (0) next to the category node. That's because these providers never call register with a null add list, which would have caused (0) to appear. However, I'm no sure I should fix that since part 1 of this issue asks for those category nodes to be removed in the first place.
This has now been fixed. However, I would also like to preserve the type order in a better way, so I'm leaving this issue open to track that.
The type-ordering was fixed a while ago, with this commit message: * Fix suggestion type ordering. The suggestions should stay in a fixed order now - which I've set up roughly according to "importance": Compilation Errors Tasks Due Rule Violations HTML Problems Source Tasks Javadoc Problems Copyright Problems