I have a VSPackage that I am trying to modify. The package is using GraphProviderAttribute marked class to implement a custom Microsoft.VisualStudio.GraphModel.IGraphProvider. Whenever the custom file type is expanded in Solution Explorer, the new GraphNode is created via IGraphContext.Graph.Nodes.GetOrCreate(..) method. The node is subsequently inserted into the context via the call to IGraphContext.OutputNodes.Add(). The context menu command is created in .vsct file and handled in code whenever single custom node is selected. The problem is that whenever multiple custom nodes are selected, the context menu does not show up at all. I am not sure what is telling context menu that houses the custom command to show up. Can someone point out what could be happening there? The context menu command that works for single node selection is placed in the following:
<CommandPlacement guid="guidCommandSet" id="Update" priority="0x0100"><Parent guid="guidSHLMainMenu" id="IDG_VS_CTXT_PROJWIN_FILECONTENTS_SCOPE" />
</CommandPlacement>
So, the context menu command for single item selection shows up under 'Scope To This' menu command.
Thank you,
Alex