rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 300 forks source link

Indenter commands should be disabled when a parse is in progress #2864

Open SystemsModelling opened 7 years ago

SystemsModelling commented 7 years ago

Parsing seemed much faster in 2.0.12 but now it takes longer again, While it is Parsing, Indent shows Procedure and Project enabled but Module greyed out. If it's not ready shouldn't they all be greyed out?

When in Ready state: Indent Current Project does nothing. Indent Current Module works.

comintern commented 7 years ago

All of the indenter options should be disabled when a parse is running, and should be enabled when not parsing based on the avaailability of ActiveVBProject, ActiveCodePane, and whether the cursor is inside a procedure in the ActiveCodePane for "Indent Project", "Indent Module", and "Indent Procedure" respectively. I'm guessing this is an issue with how\when we're calling CanExecute for the commands.