Rubberduck icon indicating copy to clipboard operation
Rubberduck copied to clipboard

Code Inspections: Do not collapse tree view

Open AndreasMatthias opened this issue 2 years ago • 2 comments

Justification Working with "Code Inspections" I find myself expanding the tree view continuously. Here's the workflow:

  • Expand the tree view
  • Fix the code
  • Refresh (which collapses the tree view)
  • Expand the tree
  • Work on next warning
  • Refresh
  • Expand tree view
  • ...

Description I'd prefer if a refresh would not collapse the tree view.

AndreasMatthias avatar Feb 26 '22 14:02 AndreasMatthias

The reason refreshing collapses the tree view is that we rebuild a while new tree with each refresh and storing the expanded state of a tree across parsing runs can be surprisingly complex. There has been some work to make it easier and faster to avoid removing inspection results from a previous parsing state, but that does not seem to have reached the UI yet.

Vogel612 avatar Feb 27 '22 11:02 Vogel612

Would it be reasonable to have a setting to automatically expand the topmost group of the tree?

I typically have the inspections window set to group by severity, and whittle away at the suggestions periodically,

Heck, if it also 'selected' the first item in the list the ✔️ Fix button on the inspection window would become much more helpful.

PTSEE-MH avatar May 20 '22 18:05 PTSEE-MH