提交 911c723c 编写于 作者: J Jason Malinowski

Add a key binding of Ctrl+F12 for Go to Implementation

To do this, we are relying on the support that Visual Studio provides
that lets us target a keybinding for a specific editor factory. This
has the downside that we must specify the keybinding for each editor
factory and if the user wants to change it they'll have to change it
for each context. It's our belief that to properly define a context
that can be consumed in this case requires either editor support (or
lots of debugging) so until then this is good enough.

Fixes #8226.
上级 1da9adaa
......@@ -469,6 +469,13 @@
</CommandPlacement>
</CommandPlacements>
<KeyBindings>
<KeyBinding guid="guidRoslynGrpId" id="cmdidGoToImplementation" mod1="Control" key1="VK_F12" editor="guidCSharpEditorFactory" />
<KeyBinding guid="guidRoslynGrpId" id="cmdidGoToImplementation" mod1="Control" key1="VK_F12" editor="guidCSharpCodePageEditorFactory" />
<KeyBinding guid="guidRoslynGrpId" id="cmdidGoToImplementation" mod1="Control" key1="VK_F12" editor="guidVisualBasicEditorFactory" />
<KeyBinding guid="guidRoslynGrpId" id="cmdidGoToImplementation" mod1="Control" key1="VK_F12" editor="guidVisualBasicCodePageEditorFactory" />
</KeyBindings>
<UsedCommands>
<UsedCommand guid="guidVSStd2K" id="ECMD_INSERTCOMMENT" />
</UsedCommands>
......@@ -476,6 +483,11 @@
<Symbols>
<GuidSymbol name="guidRoslynPkgId" value="{6cf2e545-6109-4730-8883-cf43d7aec3e1}" />
<GuidSymbol name="guidCSharpEditorFactory" value="{a6c744a8-0e4a-4fc6-886a-064283054674}" />
<GuidSymbol name="guidCSharpCodePageEditorFactory" value="{08467b34-b90f-4d91-bdca-eb8c8cf3033a}" />
<GuidSymbol name="guidVisualBasicEditorFactory" value="{2c015c70-c72c-11d0-88c3-00a0c9110049}" />
<GuidSymbol name="guidVisualBasicCodePageEditorFactory" value="{6c33e1aa-1401-4536-ab67-0e21e6e569da}" />
<GuidSymbol name ="guidCSharpGrpId" value ="{5d7e7f65-a63f-46ee-84f1-990b2cab23f9}">
<IDSymbol name="IDM_CSHARP_ORGANIZE" value="0x3900"/>
<IDSymbol name="IDM_CSHARP_CTX_ORGANIZE" value="0x3950"/>
......
......@@ -29,7 +29,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Setup
{
[Guid(Guids.RoslynPackageIdString)]
[PackageRegistration(UseManagedResourcesOnly = true)]
[ProvideMenuResource("Menus.ctmenu", version: 12)]
[ProvideMenuResource("Menus.ctmenu", version: 13)]
internal class RoslynPackage : Package
{
private LibraryManager _libraryManager;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册