blob: 1fa02f5ba251c907022b0cd26f1de982ced35c74 (
plain)
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
<ExtensionModel>
<!-- Extension Points -->
<ExtensionPoint path = "/MonoDevelop/Refactoring/Refactorings" name = "Refactorings">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/CodeGenerators" name = "Code Generators">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/ASTProvider" name = "ASTProviders">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/CodeDiagnosticProvider" name = "Code Diagnostic Provider">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/FindReferencesProvider">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/FindReferenceUsagesProvider">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<ExtensionPoint path = "/MonoDevelop/Refactoring/JumpToDeclarationHandler" defaultInsertAfter = "MidStep">
<ExtensionNode name="Class"/>
</ExtensionPoint>
<!-- Extensions -->
<!--
<Extension path = "/MonoDevelop/Ide/Pads">
<Pad id="MonoDevelop.Refactoring.CodeIssuePad" _label="Code Issues" class="MonoDevelop.CodeIssues.CodeIssuePad" defaultPlacement = "Bottom"/>
</Extension> -->
<!-- Text editor integration -->
<Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
<Class class = "MonoDevelop.AnalysisCore.Gui.ResultsEditorExtension" />
</Extension>
<Extension path = "/MonoDevelop/Ide/Editor/TooltipProviders">
<Provider id="AnalysisResults" class="MonoDevelop.AnalysisCore.Gui.ResultTooltipProvider" insertafter="CompileError" />
</Extension>
<!-- RefactoryCommands -->
<Extension path = "/MonoDevelop/Ide/Commands">
<Category _name = "Code Navigation" id = "CodeNavigation">
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.GotoDeclaration"
_label = "_Go to Declaration"
shortcut = "F12"
macShortcut = "Meta|D F12"/>
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.GotoImplementation"
_label = "Go to Implementation"
shortcut="Ctrl|F12"
macShortcut=""/>
<Command id = "MonoDevelop.Refactoring.Navigate.GotoBaseMember"
_label = "Go to Base Member"
shortcut=""
macShortcut=""/>
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.FindReferences"
_label = "_Find References"
shortcut = "Shift|F12"
macShortcut = "Shift|Meta|R Shift|F12"/>
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.FindAllReferences"
_label = "_Find References of All Overloads" />
</Category>
<Category _name = "Refactoring" id = "Refactoring">
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.QuickFix"
_label = "Quick Fix..."
shortcut = "Alt|Return"
macShortcut = "Alt|Return" />
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.QuickFixMenu"
_label = "Quick Fix"
type = "array"
defaultHandler = "MonoDevelop.Refactoring.QuickFixMenuHandler" />
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.ImportSymbol"
_label = "Import Symbol..."
shortcut = "Control|Alt|space"
macShortcut = "Control|Alt|space" />
<Command id = "MonoDevelop.AnalysisCore.AnalysisCommands.ExportRules"
defaultHandler = "MonoDevelop.AnalysisCore.ExportRulesHandler"
_label = "Export C# Code Rules to a File"
_description = "Generates an HTML file that contains a list of all code rules"
/>
<Command id = "MonoDevelop.Refactoring.AnalyzeWholeSolution"
defaultHandler = "MonoDevelop.Refactoring.AnalyzeWholeSolutionHandler"
_label = "_Whole Solution"
/>
<Command id = "MonoDevelop.Refactoring.AnalyzeCurrentProject"
defaultHandler = "MonoDevelop.Refactoring.AnalyzeCurrentProjectHandler"
_label = "_Current Project"
/>
<Command id = "MonoDevelop.Refactoring.AnalyzeSource"
defaultHandler = "MonoDevelop.Refactoring.AnalyzeSourceHandler"
_label = "_Analyze Source"
/>
</Category>
<Category id="Hidden" _name="Hidden">
<Command id = "MonoDevelop.Refactoring.RefactoryCommands.FindDerivedClasses"
_label = "Find _Derived Symbols" />
</Category>
</Extension>
<Extension path = "/MonoDevelop/Ide/TextEditorExtensions">
<Class class = "MonoDevelop.CodeActions.CodeActionEditorExtension" />
</Extension>
<Extension path = "/MonoDevelop/Ide/MainMenu/Edit">
<CommandItem id = "MonoDevelop.CodeGeneration.CodeGenerationCommands.ShowCodeGenerationWindow"
insertafter="MonoDevelop.Ide.Commands.TextEditorCommands.ShowParameterCompletionWindow" />
</Extension>
<!-- Options panels -->
<Extension path = "/MonoDevelop/Ide/GlobalOptionsDialog/TextEditor">
<Section id="Analysis" _label="Source Analysis" fill="true" class="MonoDevelop.AnalysisCore.Gui.AnalysisOptionsPanel" icon="md-prefs-code-analysis" >
<Section id="C#" _label="C#" icon="md-prefs-source">
<Panel id="CodeActions" _label="Code Actions" fill="true" class="MonoDevelop.CodeActions.CodeActionPanel" grouping="Tab" icon="md-prefs-code-actions" />
<Panel id="CodeGeneration" _label="Code Generation" fill="true" class="MonoDevelop.Refactoring.CodeGenerationPanel" grouping="Tab" />
<Panel id="CodeRules" _label="Code Rules" fill="true" class="MonoDevelop.CodeIssues.CodeRulePanel" grouping="Tab" icon="md-prefs-code-rules" />
</Section>
</Section>
</Extension>
<!-- Extensions to the addin points defined by this addin -->
<Extension path="/MonoDevelop/Core/StockIcons">
<StockIcon stockid="md-prefs-code-actions" resource="prefs-code-actions-16.png" size="Menu" />
<StockIcon stockid="md-prefs-code-rules" resource="prefs-code-rules-16.png" size="Menu" />
<StockIcon stockid="md-prefs-code-analysis" resource="prefs-code-analysis-16.png" size="Menu" />
</Extension>
<Extension path = "/MonoDevelop/Refactoring/JumpToDeclarationHandler">
<Class id="MidStep" class="MonoDevelop.Refactoring.DummyJumpToDeclarationHandler" />
</Extension>
<Extension path = "/MonoDevelop/Ide/MainMenu/Project">
<ItemSet
id = "Analyze"
_label = "_Analyze">
<CommandItem id = "MonoDevelop.Refactoring.AnalyzeWholeSolution" />
<CommandItem id = "MonoDevelop.Refactoring.AnalyzeCurrentProject" />
</ItemSet>
</Extension>
<Extension path="/MonoDevelop/Ide/ContextMenu/ProjectPad">
<Condition id="ItemType" value="Solution|Project">
<CommandItem id = "MonoDevelop.Refactoring.AnalyzeSource" insertbefore="MonoDevelop.Ide.Commands.SearchCommands.FindInFiles" />
</Condition>
</Extension>
<Extension path="/MonoDevelop/Ide/Composition">
<Assembly file="MonoDevelop.Refactoring.dll"/>
</Extension>
<ExtensionPoint path="/MonoDevelop/Refactoring/AnalyzerAssemblies">
<ExtensionNode name = "Assembly" type = "MonoDevelop.Core.AddIns.AssemblyExtensionNode" />
</ExtensionPoint>
<Extension path="/MonoDevelop/Refactoring/AnalyzerAssemblies">
<Assembly file="Microsoft.CodeAnalysis.CSharp" />
<Assembly file="Microsoft.CodeAnalysis.CSharp.Features" />
<Assembly file="Microsoft.CodeAnalysis.EditorFeatures" />
<Assembly file="Microsoft.CodeAnalysis.EditorFeatures.CSharp" />
<Assembly file="Microsoft.CodeAnalysis.Features" />
<Assembly file="Microsoft.CodeAnalysis.VisualBasic" />
<Assembly file="Microsoft.CodeAnalysis.VisualBasic.Features" />
</Extension>
<Extension path = "/MonoDevelop/TextEditor/CommandMapping">
<Map id="MonoDevelop.Refactoring.RefactoryCommands.GotoDeclaration" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.GoToDefinitionCommandArgs" />
<Map id="MonoDevelop.Refactoring.RefactoryCommands.FindReferences" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.FindReferencesCommandArgs" />
<Map id="MonoDevelop.Refactoring.RefactoryCommands.GotoImplementation" argsType="@MonoDevelop.Refactoring.CommandArgsFactories.CreateGoToImplementationCommandArgs" />
<!-- These mappings exist to ensure the new editor calls the new commands -->
<Map id="MonoDevelop.Refactoring.RefactoryCommands.FindAllReferences" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.Navigation.FindReferencesOfOverloadsCommandArgs" />
<Map id="MonoDevelop.Refactoring.Navigation.FindBaseSymbols" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.Navigation.FindBaseSymbolsCommandArgs" />
<Map id="MonoDevelop.Refactoring.Navigation.FindDerivedSymbols" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.Navigation.FindDerivedSymbolsCommandArgs" />
<Map id="MonoDevelop.CSharp.Navigation.FindExtensionMethods" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.Navigation.FindExtensionMethodsCommandArgs" />
<Map id="MonoDevelop.CSharp.Navigation.FindMemberOverloads" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.Navigation.FindMemberOverloadsCommandArgs" />
<Map id="MonoDevelop.CSharp.Navigation.FindImplementingMembers" argsType="Microsoft.VisualStudio.Text.Editor.Commanding.Commands.Navigation.FindImplementingMembersCommandArgs" />
</Extension>
<Extension path="/MonoDevelop/TextEditor/ContextMenu/Editor">
<Condition id="FileType" mimeTypes="text/x-csharp">
<ItemSet id="Navigate" _label="Navigate" insertbefore="Separator1">
<CommandItem id="MonoDevelop.Refactoring.RefactoryCommands.FindAllReferences" />
<CommandItem id="MonoDevelop.Refactoring.Navigation.FindBaseSymbols" />
<CommandItem id="MonoDevelop.Refactoring.Navigation.FindDerivedSymbols" />
<SeparatorItem id="SeparatorNavigate1" />
<CommandItem id="MonoDevelop.CSharp.Navigation.FindExtensionMethods" />
<CommandItem id="MonoDevelop.CSharp.Navigation.FindMemberOverloads" />
<CommandItem id="MonoDevelop.CSharp.Navigation.FindImplementingMembers" />
</ItemSet>
</Condition>
</Extension>
<Extension path="/MonoDevelop/Core/SystemInformation">
<Class class="MonoDevelop.Refactoring.RoslynInformationProvider" />
</Extension>
</ExtensionModel>
|