Writing Visual Studio Extensions with Mads - Understanding VisibilityConstraints

preview_player
Показать описание
By utilizing VisibilityConstraints, we're able to let Visual Studio handle the visibility of our commands without initializing our extension. It's great for performance and requires less code than using `BeforeQueryStatus`



#vsix #commands #visibility
Рекомендации по теме
Комментарии
Автор

I tried to go through the examples and the all worked for me until I needed to show a menu item dependent on the content of a file. I was unable to get this to work. Could you create an example on git hub of doing this very thing. Have the context menu pop up on an XML file and depending on the content of the file the menu item is displayed or not.

stuartsmith
Автор

Dependency Injection! I can't wait to try that out! No more calling the service provider.

Are there any plans to show how T4 Templates (runtime templates) can be used by an Visual Studio Extension?

SuperToughnut