Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit d9a1a90

Browse files
committed
Merge pull request #181 from github/context-menus
Add context menu placeholders for (hopefully all) code windows
2 parents 2a09e23 + 8096f18 commit d9a1a90

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

src/GitHub.VisualStudio/GitHub.VisualStudio.vsct

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
<Group guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup1" priority="0x0501">
3838
<Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbar" />
3939
</Group>
40+
41+
<Group guid="guidContextMenuSet" id="idContextMenuGroup">
42+
</Group>
43+
4044
</Groups>
4145

4246
<Menus>
@@ -46,6 +50,7 @@
4650
<CommandName>Window Toolbar</CommandName>
4751
</Strings>
4852
</Menu>
53+
4954
</Menus>
5055

5156
<!--Buttons section. -->
@@ -117,7 +122,25 @@
117122
</Buttons>
118123

119124
</Commands>
120-
125+
126+
<CommandPlacements>
127+
<CommandPlacement guid="guidContextMenuSet" id="idContextMenuGroup" priority="0x1000">
128+
<Parent guid="GUID_XAML_EDITOR" id="ID_XAML_CTXT"/>
129+
</CommandPlacement>
130+
131+
<CommandPlacement guid="guidContextMenuSet" id="idContextMenuGroup" priority="0x1000">
132+
<Parent guid="GUID_HTML_EDITOR" id="ID_HTML_CTXT"/>
133+
</CommandPlacement>
134+
135+
<CommandPlacement guid="guidContextMenuSet" id="idContextMenuGroup" priority="0x1000">
136+
<Parent guid="GUID_HTML_EDITOR" id="ID_JS_CTXT"/>
137+
</CommandPlacement>
138+
139+
<CommandPlacement guid="guidContextMenuSet" id="idContextMenuGroup" priority="0x1000">
140+
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/>
141+
</CommandPlacement>
142+
</CommandPlacements>
143+
121144
<Symbols>
122145
<!-- This is the package guid. -->
123146
<GuidSymbol name="guidGitHubPkg" value="{c3d3dc68-c977-411f-b3e8-03b0dccf7dfc}" />
@@ -153,6 +176,19 @@
153176
<IDSymbol name="pullRequestCommand" value="0x310" />
154177
</GuidSymbol>
155178

179+
<GuidSymbol name="guidContextMenuSet" value="{31057D08-8C3C-4C5B-9F91-8682EA08EC27}">
180+
<IDSymbol name="idContextMenuGroup" value="0x1010" />
181+
</GuidSymbol>
182+
183+
<GuidSymbol name="GUID_XAML_EDITOR" value="{4C87B692-1202-46AA-B64C-EF01FAEC53DA}">
184+
<IDSymbol name="ID_XAML_CTXT" value="259"/>
185+
</GuidSymbol>
186+
187+
<GuidSymbol name="GUID_HTML_EDITOR" value="{D7E8C5E1-BDB8-11D0-9C88-0000F8040A53}">
188+
<IDSymbol name="ID_HTML_CTXT" value="51"/>
189+
<IDSymbol name="ID_JS_CTXT" value="52"/>
190+
</GuidSymbol>
191+
156192
</Symbols>
157193

158194
</CommandTable>

src/GitHub.VisualStudio/Settings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ static class GuidList
1010
public const string guidGitHubPkgString = "c3d3dc68-c977-411f-b3e8-03b0dccf7dfc";
1111
public const string guidGitHubCmdSetString = "c4c91892-8881-4588-a5d9-b41e8f540f5a";
1212
public const string guidGitHubToolbarCmdSetString = "C5F1193E-F300-41B3-B4C4-5A703DD3C1C6";
13+
public const string guidContextMenuSetString = "31057D08-8C3C-4C5B-9F91-8682EA08EC27";
1314

1415
public static readonly Guid guidGitHubCmdSet = new Guid(guidGitHubCmdSetString);
1516
public static readonly Guid guidGitHubToolbarCmdSet = new Guid(guidGitHubToolbarCmdSetString);
17+
public static readonly Guid guidContextMenuSet = new Guid(guidContextMenuSetString);
1618
}
1719

1820
static class NavigationItemPriority

0 commit comments

Comments
 (0)