|
79 | 79 | </Path> |
80 | 80 |
|
81 | 81 | <Path name="/SharpDevelop/ViewContent/TextEditor/ContextMenu"> |
82 | | - <Include |
83 | | - id="GoToTypeScriptDefinition" |
84 | | - insertafter="Refactoring" |
85 | | - insertbefore="Cut" |
86 | | - item="/Addins/TypeScript/TextEditor/ContextMenu/GoToTypeScriptDefinition"/> |
87 | | - <Include |
88 | | - id="FindTypeScriptReferences" |
89 | | - insertafter="Refactoring" |
90 | | - insertbefore="Cut" |
91 | | - item="/Addins/TypeScript/TextEditor/ContextMenu/FindTypeScriptReferences"/> |
92 | | - <Include |
93 | | - id="RenameTypeScriptReference" |
94 | | - insertafter="Refactoring" |
95 | | - insertbefore="Cut" |
96 | | - item="/Addins/TypeScript/TextEditor/ContextMenu/RenameTypeScriptReference"/> |
97 | | - <MenuItem |
98 | | - id="TypeScriptSeparator" |
99 | | - insertafter="RenameTypeScriptReference" |
100 | | - insertbefore="Cut" |
101 | | - type="Separator"/> |
| 82 | + <Condition name="ActiveContentExtension" activeextension=".ts"> |
| 83 | + <Include |
| 84 | + id="GoToTypeScriptDefinition" |
| 85 | + insertafter="Refactoring" |
| 86 | + insertbefore="Cut" |
| 87 | + item="/Addins/TypeScript/TextEditor/ContextMenu/GoToTypeScriptDefinition"/> |
| 88 | + <Include |
| 89 | + id="FindTypeScriptReferences" |
| 90 | + insertafter="Refactoring" |
| 91 | + insertbefore="Cut" |
| 92 | + item="/Addins/TypeScript/TextEditor/ContextMenu/FindTypeScriptReferences"/> |
| 93 | + <Include |
| 94 | + id="RenameTypeScriptReference" |
| 95 | + insertafter="Refactoring" |
| 96 | + insertbefore="Cut" |
| 97 | + item="/Addins/TypeScript/TextEditor/ContextMenu/RenameTypeScriptReference"/> |
| 98 | + <MenuItem |
| 99 | + id="TypeScriptSeparator" |
| 100 | + insertafter="RenameTypeScriptReference" |
| 101 | + insertbefore="Cut" |
| 102 | + type="Separator"/> |
| 103 | + </Condition> |
102 | 104 | </Path> |
103 | 105 |
|
104 | 106 | <Path name="/SharpDevelop/Workbench/MainMenu/Search"> |
105 | | - <Include |
106 | | - id="GoToTypeScriptDefinition" |
107 | | - insertafter="Separator2" |
108 | | - insertbefore="GotoLineNr" |
109 | | - item="/Addins/TypeScript/TextEditor/ContextMenu/GoToTypeScriptDefinition"/> |
110 | | - <Include |
111 | | - id="FindTypeScriptReferences" |
112 | | - insertafter="Separator2" |
113 | | - insertbefore="GotoLineNr" |
114 | | - item="/Addins/TypeScript/TextEditor/ContextMenu/FindTypeScriptReferences"/> |
115 | | - <MenuItem |
116 | | - id="TypeScriptSeparator" |
117 | | - insertafter="FindTypeScriptReferences" |
118 | | - insertbefore="GotoLineNr" |
119 | | - type="Separator"/> |
| 107 | + <Condition name="ActiveContentExtension" activeextension=".ts"> |
| 108 | + <Include |
| 109 | + id="GoToTypeScriptDefinition" |
| 110 | + insertafter="Separator2" |
| 111 | + insertbefore="GotoLineNr" |
| 112 | + item="/Addins/TypeScript/TextEditor/ContextMenu/GoToTypeScriptDefinition"/> |
| 113 | + <Include |
| 114 | + id="FindTypeScriptReferences" |
| 115 | + insertafter="Separator2" |
| 116 | + insertbefore="GotoLineNr" |
| 117 | + item="/Addins/TypeScript/TextEditor/ContextMenu/FindTypeScriptReferences"/> |
| 118 | + <MenuItem |
| 119 | + id="TypeScriptSeparator" |
| 120 | + insertafter="FindTypeScriptReferences" |
| 121 | + insertbefore="GotoLineNr" |
| 122 | + type="Separator"/> |
| 123 | + </Condition> |
120 | 124 | </Path> |
121 | | - |
122 | | -<!-- <Path name="/SharpDevelop/Dialogs/OptionsDialog/TextEditorOptions"> |
123 | | - <OptionPanel |
124 | | - id="TypeScriptOptions" |
125 | | - label="TypeScript" |
126 | | - insertafter="CodeCompletion" |
127 | | - insertbefore="VBSpecificOptions" |
128 | | - class="ICSharpCode.TypeScriptBinding.TypeScriptOptionsPanel"/> |
129 | | - </Path>--> |
130 | 125 |
|
131 | 126 | <Path path="/SharpDevelop/BackendBindings/ProjectOptions/AllManaged"> |
132 | 127 | <Condition name="IsTypeScriptProjectOpen"> |
|
0 commit comments