ReSharper 3.0 actions in menus

I can't seem to get ReSharper 3.0 actions to show up in menus. I'm trying this:

]]>

If I add an invalid shortcut key it complains when it loads, so I know it's parsing my actions.xml.

Speakeing of shortcuts, how do you get those to work?
Is it possible to map an action to an action in the VS Keyboard dialog? If so, how?

Any word on the 3.0 docs? Getting kind of frustrating poking through reflector for stuff that should be trivial...

Thanks,

Aaron

5 comments
Comment actions Permalink

Hello Aaron,

you may need to reset the flag in the registry that tells ReSharper to perform
one-time initialization. Just remove the
"One-Time..." values under the registry key HKEY_LOCAL_MACHINE\SOFTWARE\JetBrains\ReSharper\v3.0\vs8.0
and
try to restart VS/ReSharper with your plugin loaded.

Concerning you second question: an action added by a plugin to ReSharper
is mapped to the VS command
with a prefix like "ReSharper" and a suffix containing the action's ID. Do
you see your actions in the Keyboard dialog
after the resetting one-time initialization value?

Thanks.


Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


I can't seem to get ReSharper 3.0 actions to show up in menus. I'm
trying this:

<?xml version="1.0" encoding="utf-8" ?>
<actions>
<insert group-id="VS#Code Window" position="before">
<action id="Action" text="Some Action..." />
<separator />
<action-ref id="Action" />
<separator />
</insert>
</actions>
If I add an invalid shortcut key it complains when it loads, so I know
it's parsing my actions.xml.

Speakeing of shortcuts, how do you get those to work? Is it possible
to map an action to an action in the VS Keyboard dialog? If so, how?

Any word on the 3.0 docs? Getting kind of frustrating poking through
reflector for stuff that should be trivial...

Thanks,

Aaron



0
Comment actions Permalink

Hi Dmitry,

I'd tried that, it doesn't seem to change anything. Neither the keyboard command nor the menu item shows up. All that happens is all my keyboard shortcuts get hosed as usual (see my other post on this topic). And for some reason, now with my project if my plugin is in the plugin folder devenv/resharper hangs indefinitely after doing the one time initialization... but that's a different problem, I've tried the converted FavoriteFiles Power Toy, and it doesn't work either (it doesn't hang, the menu item/command just dont' show up)

Could you send me an example project that demonstrates adding a menu item and keyboard shortcut?

Thanks,

Aaron

0
Comment actions Permalink

Hello Aaron,

we're going to publish the PowerToys for 3.0.2 soon, and they will include
a sample of how to add menu items. Meantime,
looking at your actions.xml in the original post, I've noticed that you use
'position="before"' attribute (which means that the action
should be placed before the 'anchor' action which should be also specified).
Could you please try
to replace it by 'position="last"' and check if it matters?

Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


Hi Dmitry,

I'd tried that, it doesn't seem to change anything. Neither the
keyboard command nor the menu item shows up. All that happens is all
my keyboard shortcuts get hosed as usual (see my other post on this
topic). And for some reason, now with my project if my plugin is in
the plugin folder devenv/resharper hangs indefinitely after doing the
one time initialization... but that's a different problem, I've tried
the converted FavoriteFiles Power Toy, and it doesn't work either (it
doesn't hang, the menu item/command just dont' show up)

Could you send me an example project that demonstrates adding a menu
item and keyboard shortcut?

Thanks,

Aaron



0
Comment actions Permalink

I've tried that too. They just don't appear to work in 3.0.1. None of the power toys that were recompiled for 3.0 have their actions show up. I'm eagerly awaiting a real sample.

0
Comment actions Permalink

Hello Aaron,

are the PowerToys load normally in your scenario? I mean, aren't there any
exceptions etc? I would also try to
load them under a debugger with any exception breakpoint set. And finally,
could you please post ReShaper log
captured after startup with PowerToys - there should be log entries indicating
plugin load errors, if were any.


Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


I've tried that too. They just don't appear to work in 3.0.1. None of
the power toys that were recompiled for 3.0 have their actions show
up. I'm eagerly awaiting a real sample.



0

Please sign in to leave a comment.