Action in a plugin

Hi all,

I am writing a ReSharper 6.1 plugin and I want an action to be available as a context menu in Solution Explorer/Navigator and on the code window. I have put in the following XML file and it works.

<?xml version="1.0" encoding="utf-8"?>
 
<!-- 
  This file contains actions configuration for this plugin. 
  It will be loaded automatically by resource name specified in the [ActionsXmlAttribute] of the plugin assembly.
-->
 
<actions>
  <action id="FindUnusedCodeContextAction" text="Find Unused Code" />
  <insert group-id="VS#Code Window" position="last">
    <separator />
    <action-ref id="FindUnusedCodeContextAction" />
  </insert>
 
  <insert group-id="VS#Solution" position="last">
    <separator />
    <action-ref id="FindUnusedCodeContextAction" />
  </insert>
 
  <insert group-id="VS#Item" position="last">
    <separator />
    <action-ref id="FindUnusedCodeContextAction" />
  </insert>
 
  <insert group-id="VS#Project" position="last">
    <separator />
    <action-ref id="FindUnusedCodeContextAction" />
  </insert>
 
  <insert group-id="VS#Folder" position="last">
    <separator />
    <action-ref id="FindUnusedCodeContextAction" />
  </insert>
 
  <insert group-id="VS#Solution Folder" position="last">
    <separator />
    <action-ref id="FindUnusedCodeContextAction" />
  </insert>
 
</actions>


I have two questions:

  1. I had to guess most of the 'group-id' attributes - is a comprehensive list of the allowable values available anywhere?
  2. Unfortunately my plugin seems to remove the standard ReSharper menu items from the menus. Does anyone know why this might be happening?


Thanks,

Polly

1 comment
Comment actions Permalink
Hi Polly. Sorry for the delay in replying.I'm afraid there isn't a list of known id's for actions available at this time. It's on my to-do list to get added to the dev guide.I don't think there should be a problem where the existing menu items are removed. Could you share your code? And what version of ReSharper are you using?ThanksMatt
0

Please sign in to leave a comment.