-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitMenuExtPackage.vsct
More file actions
120 lines (105 loc) · 5.49 KB
/
Copy pathGitMenuExtPackage.vsct
File metadata and controls
120 lines (105 loc) · 5.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="utf-8"?>
<CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<Extern href="stdidcmd.h"/>
<Extern href="vsshlids.h"/>
<Commands package="guidGitMenuExtPackage">
<!--
Custom group placed on the VS top-level Git root menu (guidGitTopLevelMenu:GitRootMenu = 0xF000, menu/IDM).
Buttons are placed inside this group to form their own section (with separator).
priority=0x0500, positioned below the built-in Manage Branches.
-->
<Groups>
<Group guid="guidGitMenuExtCmdSet" id="GitMenuExtGroup" priority="0x0500">
<Parent guid="guidGitTopLevelMenu" id="GitRootMenu"/>
</Group>
<!-- Placed on the Git repository window commit history context menu (guidGitTopLevelMenu:GitHistoryContextMenu = 0xF040, confirmed via VSIP) -->
<Group guid="guidGitMenuExtCmdSet" id="HistoryContextGroup" priority="0x0100">
<Parent guid="guidGitTopLevelMenu" id="GitHistoryContextMenu"/>
</Group>
<!-- Placed on the editor (code window) right-click context menu so it shows in the editor area -->
<Group guid="guidGitMenuExtCmdSet" id="EditorGitContextGroup" priority="0x0500">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/>
</Group>
<!-- Placed on the Solution Explorer selected-item (file) right-click context menu -->
<Group guid="guidGitMenuExtCmdSet" id="ProjectItemGitContextGroup" priority="0x0500">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE"/>
</Group>
<!-- Solution node right-click context menu. -->
<Group guid="guidGitMenuExtCmdSet" id="SolutionNodeGitGroup" priority="0x0100">
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_SOLNNODE"/>
</Group>
</Groups>
<Buttons>
<Button guid="guidGitMenuExtCmdSet" id="DeleteBranchesCommandId" priority="0x0100" type="Button">
<Parent guid="guidGitMenuExtCmdSet" id="GitMenuExtGroup"/>
<Strings>
<ButtonText>Delete Branches...</ButtonText>
<CommandName>DeleteBranches</CommandName>
</Strings>
</Button>
<Button guid="guidGitMenuExtCmdSet" id="DeleteOutdatedBranchesCommandId" priority="0x0200" type="Button">
<Parent guid="guidGitMenuExtCmdSet" id="GitMenuExtGroup"/>
<Strings>
<ButtonText>Delete Outdated Branches...</ButtonText>
<CommandName>DeleteOutdatedBranches</CommandName>
</Strings>
</Button>
<Button guid="guidGitMenuExtCmdSet" id="CopyCommitIdCommandId" priority="0x0100" type="Button">
<Parent guid="guidGitMenuExtCmdSet" id="HistoryContextGroup"/>
<Strings>
<ButtonText>Copy Commit ID</ButtonText>
<CommandName>CopyCommitId</CommandName>
</Strings>
</Button>
<Button guid="guidGitMenuExtCmdSet" id="ExportSelectedCommitsCommandId" priority="0x0200" type="Button">
<Parent guid="guidGitMenuExtCmdSet" id="HistoryContextGroup"/>
<Strings>
<ButtonText>Export Changed Files...</ButtonText>
<CommandName>ExportSelectedCommits</CommandName>
</Strings>
</Button>
<Button guid="guidGitMenuExtCmdSet" id="CompareFileWithBranchCommandId" priority="0x0100" type="Button">
<Parent guid="guidGitMenuExtCmdSet" id="EditorGitContextGroup"/>
<Parent guid="guidGitMenuExtCmdSet" id="ProjectItemGitContextGroup"/>
<Strings>
<ButtonText>Compare With Branch...</ButtonText>
<CommandName>CompareFileWithBranch</CommandName>
</Strings>
</Button>
<Button guid="guidGitMenuExtCmdSet" id="CompareBranchesCommandId" priority="0x0300" type="Button">
<Parent guid="guidGitMenuExtCmdSet" id="GitMenuExtGroup"/>
<Parent guid="guidGitMenuExtCmdSet" id="SolutionNodeGitGroup"/>
<Strings>
<ButtonText>Compare With Branch...</ButtonText>
<CommandName>CompareBranches</CommandName>
</Strings>
</Button>
</Buttons>
</Commands>
<Symbols>
<GuidSymbol name="guidGitMenuExtPackage" value="{6f8a0a0a-1234-4321-abcd-ef0123456789}" />
<GuidSymbol name="guidGitMenuExtCmdSet" value="{7b9c1b1b-5678-8765-bcde-f01234567890}">
<IDSymbol name="GitMenuExtGroup" value="0x1020"/>
<IDSymbol name="HistoryContextGroup" value="0x1022"/>
<IDSymbol name="DeleteBranchesCommandId" value="0x0100"/>
<IDSymbol name="DeleteOutdatedBranchesCommandId" value="0x0200"/>
<IDSymbol name="CopyCommitIdCommandId" value="0x0500"/>
<IDSymbol name="ExportSelectedCommitsCommandId" value="0x0600"/>
<IDSymbol name="EditorGitContextGroup" value="0x1024"/>
<IDSymbol name="ProjectItemGitContextGroup" value="0x1028"/>
<IDSymbol name="CompareFileWithBranchCommandId" value="0x0700"/>
<IDSymbol name="SolutionNodeGitGroup" value="0x1026"/>
<IDSymbol name="CompareBranchesCommandId" value="0x0800"/>
</GuidSymbol>
<!--
Command-set GUID for the VS top-level Git root menu (confirmed from local GitProvider.pkgdef).
GitRootMenu=0xF000 is the Git root menu itself (menu/IDM); custom group is placed under it.
Other known IDs under the same GUID: Open=0x1026, Share=0x1027, ShowHistory=0x1005, branch context menu=0xf032.
-->
<GuidSymbol name="guidGitTopLevelMenu" value="{57735D06-C920-4415-A2E0-7D6E6FBDFA99}">
<IDSymbol name="GitRootMenu" value="0xF000"/>
<IDSymbol name="GitHistoryContextMenu" value="0xF040"/>
</GuidSymbol>
</Symbols>
</CommandTable>