|
92 | 92 | </Strings> |
93 | 93 | </Button> |
94 | 94 |
|
95 | | -<!-- In Dev11, shell now has |
| 95 | +<!-- In Dev11+, shell now has |
96 | 96 | <Button guid ="guidVSStd11" id ="cmdidInteractiveSessionInterrupt" priority ="0x100" type ="Button"> |
97 | 97 | <Button guid ="guidVSStd11" id ="cmdidInteractiveSessionRestart" priority ="0x105" type ="Button"> |
98 | 98 | --> |
99 | | -<!-- In Dev10 hybrid, we need buttons below--> |
100 | | - <ButtonCondition="!Defined(FX_ATLEAST_45)"guid="guidFsiConsoleCmdSet"id="cmdidSessionInterrupt"priority="0x0100"type="Button"> |
101 | | - <Parentguid="guidFsiConsoleCmdSet"id="IDG_VS_WNDO_OTRWNDWS1"/> |
102 | | -<!-- Icon guid="guidImages" id="bmpPic2" /--> |
103 | | - <Iconguid="guidCancelEvaluationBmp"id="bmpConsole" /> |
| 99 | + <Buttonguid="guidFsiConsoleCmdSet"id="cmdidAttachDebugger"priority="0x0100"type="Button"> |
104 | 100 | <Strings> |
105 | | - <CommandName>FSharp.Interactive.Interrupt</CommandName> |
106 | | - <ButtonText>Cancel Evaluation</ButtonText><!-- This was called "Interrupt Session"--> |
107 | | - </Strings> |
108 | | - </Button> |
109 | | - <ButtonCondition="!Defined(FX_ATLEAST_45)"guid="guidFsiConsoleCmdSet"id="cmdidSessionRestart"priority="0x0100"type="Button"> |
110 | | - <Parentguid="guidFsiConsoleCmdSet"id="IDG_VS_WNDO_OTRWNDWS1"/> |
111 | | -<!-- Icon guid="guidImages" id="bmpPic2" /--> |
112 | | - <Iconguid="guidResetSessionBmp"id="bmpConsole" /> |
113 | | - <Strings> |
114 | | - <CommandName>FSharp.Interactive.Restart</CommandName> |
115 | | - <ButtonText>Reset Session</ButtonText> |
| 101 | + <CommandName>FSharp.Interactive.AttachDebugger</CommandName> |
| 102 | + <ButtonText>Attach Debugger</ButtonText> |
116 | 103 | </Strings> |
117 | 104 | </Button> |
118 | 105 |
|
119 | 106 | <!-- The following places a button on the F# Editor Context Menu--> |
120 | | -<!-- In Dev11, shell now has |
| 107 | +<!-- In Dev11+, shell now has |
121 | 108 | <Button guid ="guidVSStd11" id ="cmdidExecuteSelectionInInteractive" priority ="0x100" type ="Button"> |
122 | 109 | --> |
123 | | -<!-- In Dev10 hybrid, we need buttons below--> |
124 | | - <ButtonCondition="!Defined(FX_ATLEAST_45)" guid ="guidInteractive" id ="cmdidSendSelection" priority ="0x100" type ="Button"> |
125 | | - <Parentguid="guidSHLMainMenu"id="IDG_VS_CODEWIN_LANGUAGE"/> |
126 | | - <Iconguid="guidFsiConsoleBmp"id="bmpConsole"/> |
| 110 | + <Button guid ="guidInteractive" id ="cmdidDebugSelection" priority ="0x106" type ="Button"> |
| 111 | + <Parentguid="guidSHLMainMenu"id="IDG_VS_CODEWIN_LANGUAGE"/> |
127 | 112 | <Strings> |
128 | | - <ButtonText>Send To Interactive</ButtonText> |
129 | | - <CommandName>Interactive.Send.Selection.Context</CommandName> |
| 113 | + <ButtonText>Debug in F# Interactive</ButtonText> |
| 114 | + <CommandName>Interactive.Debug.Selection.Context</CommandName> |
130 | 115 | </Strings> |
131 | | -<CommandFlag>DynamicVisibility | DefaultInvisible</CommandFlag> |
| 116 | + <CommandFlag>DynamicVisibility | DefaultInvisible</CommandFlag> |
132 | 117 | </Button> |
133 | 118 |
|
134 | 119 | </Buttons> |
|
177 | 162 | <CommandPlacementguid="guidVSStd97"id="cmdidClearPane"priority="0x0200"> |
178 | 163 | <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleClearGrp"/> |
179 | 164 | </CommandPlacement> |
180 | | -<!-- Context menu, session group: Hybrid--> |
181 | | - <CommandPlacementCondition="!Defined(FX_ATLEAST_45)"guid="guidFsiConsoleCmdSet"id="cmdidSessionInterrupt"priority="0x0100"> |
182 | | - <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
183 | | - </CommandPlacement> |
184 | | - <CommandPlacementCondition="!Defined(FX_ATLEAST_45)"guid="guidFsiConsoleCmdSet"id="cmdidSessionRestart"priority="0x0300"> |
| 165 | + |
| 166 | +<!-- Context menu, session group--> |
| 167 | + <CommandPlacementguid="guidVSStd11"id="cmdidInteractiveSessionInterrupt"priority="0x0100"> |
185 | 168 | <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
186 | 169 | </CommandPlacement> |
187 | | -<!-- Context menu, session group: Dev11--> |
188 | | - <CommandPlacementCondition="Defined(FX_ATLEAST_45)"guid="guidVSStd11"id="cmdidInteractiveSessionInterrupt"priority="0x0100"> |
| 170 | + <CommandPlacementguid="guidVSStd11"id="cmdidInteractiveSessionRestart"priority="0x0300"> |
189 | 171 | <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
190 | 172 | </CommandPlacement> |
191 | | - <CommandPlacementCondition="Defined(FX_ATLEAST_45)"guid="guidVSStd11"id="cmdidInteractiveSessionRestart"priority="0x0300"> |
| 173 | + <CommandPlacementguid="guidFsiConsoleCmdSet"id="cmdidAttachDebugger"priority="0x0700"> |
192 | 174 | <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
193 | 175 | </CommandPlacement> |
| 176 | + |
194 | 177 | <!-- Adds MLSend to the context menu: |
195 | 178 | <CommandPlacement guid="guidFsiConsoleCmdSet" id="cmdidMLSendSelection" priority="0x0500"> |
196 | 179 | <Parent guid="guidFsiConsoleCmdSet" id="FsiConsoleSessionsGrp"/> |
|
226 | 209 | ALT-ENTER is globally bound to Diagram.Property. |
227 | 210 | Here we bind it in the Editor context of the standard TextEditor. |
228 | 211 | Ideally, we would bind it for F# only editor. |
229 | | - Both Hybrid and Dev11 are used here, to build both ways. |
230 | 212 | --> |
231 | | - <KeyBindingCondition="!Defined(FX_ATLEAST_45)"guid="guidInteractive"id="cmdidSendSelection"editor="GUID_TextEditorFactory"key1="VK_RETURN"mod1="Alt" /> |
232 | | - <KeyBindingCondition="Defined(FX_ATLEAST_45)"guid ="guidVSStd11" id ="cmdidExecuteSelectionInInteractive"editor="GUID_TextEditorFactory"key1="VK_RETURN"mod1="Alt" /> |
| 213 | + <KeyBinding guid="guidInteractive" id ="cmdidDebugSelection"editor="GUID_TextEditorFactory"key1="D"mod1="Control"key2="VK_RETURN"mod2="Alt" /> |
| 214 | + <KeyBinding guid ="guidVSStd11" id ="cmdidExecuteSelectionInInteractive"editor="GUID_TextEditorFactory"key1="VK_RETURN"mod1="Alt" /> |
233 | 215 |
|
234 | 216 | <!-- CRTL-ALT-F for FSI window - following similar bindings for "other windows"--> |
235 | 217 | <KeyBindingguid="guidFsiPackageCmdSet"id="cmdidFsiToolWindow"editor="guidVSStd97"key1="F"mod1="Control Alt" /> |
236 | 218 |
|
237 | | -<!-- CRTL-Break when in FSI ToolWindow is Interrupt--> |
238 | | - <KeyBindingCondition="!Defined(FX_ATLEAST_45)"guid="guidFsiConsoleCmdSet"id="cmdidSessionInterrupt"editor="guidFsiToolWindow"key1="VK_CANCEL"mod1="Control" /> |
239 | | - <KeyBindingCondition="Defined(FX_ATLEAST_45)"guid="guidVSStd11"id="cmdidInteractiveSessionInterrupt"editor="guidFsiToolWindow"key1="VK_CANCEL"mod1="Control" /> |
| 219 | +<!-- CRTL-Break when in FSI ToolWindow is Interrupt--> |
| 220 | + <KeyBindingguid="guidVSStd11"id="cmdidInteractiveSessionInterrupt"editor="guidFsiToolWindow"key1="VK_CANCEL"mod1="Control" /> |
240 | 221 |
|
241 | | -<!-- CRTL-Alt-R when in FSI ToolWindow is Reset--> |
242 | | - <KeyBindingCondition="!Defined(FX_ATLEAST_45)"guid="guidFsiConsoleCmdSet"id="cmdidSessionRestart"editor="guidFsiToolWindow"key1="R"mod1="Control Alt" /> |
243 | | - <KeyBindingCondition="Defined(FX_ATLEAST_45)"guid="guidVSStd11"id="cmdidInteractiveSessionRestart"editor="guidFsiToolWindow"key1="R"mod1="Control Alt" /> |
| 222 | +<!-- CRTL-Alt-R when in FSI ToolWindow is Reset--> |
| 223 | + <KeyBindingguid="guidVSStd11"id="cmdidInteractiveSessionRestart"editor="guidFsiToolWindow"key1="R"mod1="Control Alt" /> |
244 | 224 |
|
245 | 225 | <!-- CRTL-Alt-C when in FSI ToolWindow is Clear All--> |
246 | 226 | <KeyBindingguid="guidVSStd97"id="cmdidClearPane"editor="guidFsiToolWindow"key1="C"mod1="Control Alt" /> |
| 227 | + |
| 228 | +<!-- CRTL-Alt-D when in FSI ToolWindow is attach debugger--> |
| 229 | + <KeyBindingguid="guidFsiConsoleCmdSet"id="cmdidAttachDebugger"editor="guidFsiToolWindow"key1="D"mod1="Control Alt" /> |
247 | 230 | </KeyBindings> |
248 | 231 |
|
249 | 232 | <Symbols> |
|
279 | 262 | <IDSymbolname="FsiConsoleClearGrp"value="0x1040" /> |
280 | 263 | <IDSymbolname="FsiConsoleSessionsGrp"value="0x1050" /> |
281 | 264 | <IDSymbolname="cmdidFsiConsole"value="0x101" /> |
282 | | -<!-- below is only used by hybrid--> |
283 | | - <IDSymbolCondition="!Defined(FX_ATLEAST_45)"name="cmdidSessionInterrupt"value="0x102" /> |
284 | | - <IDSymbolCondition="!Defined(FX_ATLEAST_45)"name="cmdidSessionRestart"value="0x103" /> |
| 265 | + <IDSymbolname="cmdidAttachDebugger"value="0x104" /> |
285 | 266 | </GuidSymbol> |
286 | 267 |
|
287 | 268 | <GuidSymbolname="guidFsiConsoleBmp"value="{9074CE8B-8F1E-4c23-8EDC-82C25E0323A8}" > |
|
301 | 282 | <IDSymbolname="cmdidInteractiveSessionInterrupt" value ="0x01A"/> |
302 | 283 | <IDSymbolname="cmdidInteractiveSessionRestart" value ="0x01B"/> |
303 | 284 | </GuidSymbol> |
304 | | - |
305 | | -<!-- below is only used by hybrid--> |
306 | | - <GuidSymbolCondition="!Defined(FX_ATLEAST_45)"name="guidInteractive"value="{8B9BF77B-AF94-4588-8847-2EB2BFFD29EB}" > |
307 | | - <IDSymbolname="cmdidSendSelection" value ="0x01"/> |
308 | | - </GuidSymbol> |
309 | 285 |
|
| 286 | + <GuidSymbolname="guidInteractive"value="{8B9BF77B-AF94-4588-8847-2EB2BFFD29EB}" > |
| 287 | + <IDSymbolname="cmdidDebugSelection" value ="0x01"/> |
| 288 | + </GuidSymbol> |
| 289 | + |
310 | 290 | </Symbols> |
311 | 291 |
|
312 | 292 | </CommandTable> |
|