Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Enable commands in Isolated Shell

$
0
0

Hi,

I have a custom language service in VS Isolated Shell (VS 2013) in MPF. I want to enable the "Exclude from Project" command, and the "Rename" (for refactorization) command.

To this end, I added those lines to my vstc file:

<UsedCommands><UsedCommand guid="guidVsCommands97" id="cmdRename" /><UsedCommand guid="guidVsCommands2k" id="cmdExcludeFromProject" /></UsedCommands><Symbols><GuidSymbol name="guidVsCommands97" value="{5efc7975-14bc-11cf-9b2b-00aa00573819}"><IDSymbol name="cmdRename" value="150"/></GuidSymbol><GuidSymbol name="guidVsCommands2k" value="{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}"><IDSymbol name="cmdExcludeFromProject" value="1110"/></GuidSymbol></Symbols>

However, no matter what I do, HierarchyNode.QueryStatusOnNode() or ViewFilter.QueryCommandStatus() are never called with those respective GUID-CMD pairs. What do I have to do to "activate" those two standard Visual Studio commands?

Thanks & regards,
Max





Viewing all articles
Browse latest Browse all 4410

Trending Articles