Hi,
I tried to made a menu of my own in the IDE with the help of VSPackage tutorials.
Here is the menu hierarchy I would like to achieve:
1. Top menu
1.1 Sub Menu 1
1.1.1 Dynamically Command 1
...
1.1.N Dynamically Command N
1.2 Sub Menu 2
1.2.1 Dynamically Command 1
...
1.2.M Dynamically Command M
I followed several tutorials and managed to achieve this goal, but, the dynamically commands does not being loaded on time. When I launched the experimental build of visual studio I did not see the dynamically commands, instead, I see an empty command and only after clicking it - all dynamically commands was added. I added a break-point at the first line of my Package.Initialize override and see that it was hit only when I clicked on the empty command.
Is there any way to force Package.Initialize to happen right on visual studio start up?
I also need to update the dynamically commands each time I click on a sub menu. These dynamically commands should be updated by configuration file and reflect any change of the configuration file at run time. Is there any event to hang on for this purpose?
Thanks,
Tsachy-Gal Shemesh