|
3 | 3 | <CommandTablexmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable"> |
4 | 4 | <Externhref="stdidcmd.h"/> |
5 | 5 | <Externhref="vsshlids.h"/> |
6 | | - <Includehref="..\FSharp.VS.FSI\fsiCommands.vsct"/><!-- FSI-LINKAGE-POINT--> |
7 | 6 | <Includehref="KnownImageIds.vsct"/> |
8 | 7 |
|
9 | 8 | <!-- Stake a claime to existing commands so they aren't marked as unused and removed.--> |
10 | 9 | <UsedCommands> |
| 10 | + <UsedCommandguid="guidVSStd97"id="cmdidCut"/> |
| 11 | + <UsedCommandguid="guidVSStd97"id="cmdidCopy"/> |
| 12 | + <UsedCommandguid="guidVSStd97"id="cmdidPaste"/> |
| 13 | + <UsedCommandguid="guidVSStd97"id="cmdidClearPane"/> |
11 | 14 | <UsedCommandguid="guidVSStd2K"id="ECMD_ADDREFERENCE" /> |
12 | 15 | <UsedCommandguid="guidVSStd2K"id="ECMD_ADDREFERENCECTX" /> |
13 | 16 | </UsedCommands> |
14 | 17 |
|
15 | 18 | <CommandPlacements> |
| 19 | + <CommandPlacementguid="guidVSStd97"id="cmdidCut"priority="0x0100"> |
| 20 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleEditGrp"/> |
| 21 | + </CommandPlacement> |
| 22 | + <CommandPlacementguid="guidVSStd97"id="cmdidCopy"priority="0x0300"> |
| 23 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleEditGrp"/> |
| 24 | + </CommandPlacement> |
| 25 | + <CommandPlacementguid="guidVSStd97"id="cmdidPaste"priority="0x0500"> |
| 26 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleEditGrp"/> |
| 27 | + </CommandPlacement> |
| 28 | +<!-- Context menu, clear group--> |
| 29 | +<!-- uncomment here to add standard VS "WordWrap" toggle command to the context menu (note, it indicates toggle status with a box around the icon) |
| 30 | + <CommandPlacement guid="GUID_CMDSETID_StandardCommandSet2K" id="ECMD_TOGGLEWORDWRAP" priority="0x0100"> |
| 31 | + <Parent guid="guidFsiConsoleCmdSet" id="FsiConsoleClearGrp"/> |
| 32 | + </CommandPlacement> |
| 33 | +--> |
| 34 | + <CommandPlacementguid="guidVSStd97"id="cmdidClearPane"priority="0x0200"> |
| 35 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleClearGrp"/> |
| 36 | + </CommandPlacement> |
| 37 | +<!-- Context menu, session group--> |
| 38 | + <CommandPlacementguid="guidVSStd11"id="cmdidInteractiveSessionInterrupt"priority="0x0100"> |
| 39 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
| 40 | + </CommandPlacement> |
| 41 | + <CommandPlacementguid="guidVSStd11"id="cmdidInteractiveSessionRestart"priority="0x0300"> |
| 42 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
| 43 | + </CommandPlacement> |
| 44 | + <CommandPlacementguid="guidFsiConsoleCmdSet"id="cmdidAttachDebugger"priority="0x0700"> |
| 45 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
| 46 | + </CommandPlacement> |
| 47 | + <CommandPlacementguid="guidFsiConsoleCmdSet"id="cmdidDetachDebugger"priority="0x0800"> |
| 48 | + <Parentguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"/> |
| 49 | + </CommandPlacement> |
16 | 50 | <CommandPlacement guid ="FSharpProjectCmdSet" id ="MyFSharpGroup" priority ="0x100"> |
17 | 51 | <Parent guid ="guidSHLMainMenu" id ="IDM_VS_CTXT_ITEMNODE" /> |
18 | 52 | </CommandPlacement> |
|
35 | 69 | <Parentguid="guidSHLMainMenu"id="IDM_VS_CTXT_PROJNODE"/> |
36 | 70 | </CommandPlacement> |
37 | 71 | </CommandPlacements> |
38 | | - |
| 72 | + |
| 73 | + <Commandspackage="guidFsiPkg"> |
| 74 | + <Groups> |
| 75 | + <Groupguid="guidFsiPackageCmdSet"id="MyMenuGroup"priority="0x0600"> |
| 76 | + <Parentguid="guidSHLMainMenu"id="IDM_VS_MENU_TOOLS"/> |
| 77 | + </Group> |
| 78 | + <Groupguid="guidFsiConsoleCmdSet"id="FsiConsoleSessionsGrp"priority="0x100"> |
| 79 | + <Parentguid="guidFsiConsoleCmdSet"id="cmdIDFsiConsoleContextMenu"/> |
| 80 | + </Group> |
| 81 | + <Groupguid="guidFsiConsoleCmdSet"id="FsiConsoleEditGrp"priority="0x200"> |
| 82 | + <Parentguid="guidFsiConsoleCmdSet"id="cmdIDFsiConsoleContextMenu"/> |
| 83 | + </Group> |
| 84 | + <Groupguid="guidFsiConsoleCmdSet"id="FsiConsoleClearGrp"priority="0x300"> |
| 85 | + <Parentguid="guidFsiConsoleCmdSet"id="cmdIDFsiConsoleContextMenu"/> |
| 86 | + </Group> |
| 87 | + </Groups> |
| 88 | + <Menus> |
| 89 | + <Menuguid="guidFsiConsoleCmdSet"id="cmdIDFsiConsoleContextMenu"priority="0x0000"type="Context"> |
| 90 | + <Parentguid="guidFsiConsoleCmdSet"id="0"/> |
| 91 | + <Strings> |
| 92 | + <ButtonText>FSI Console Context</ButtonText> |
| 93 | + <CommandName>FSI Console Context</CommandName> |
| 94 | + </Strings> |
| 95 | + </Menu> |
| 96 | + </Menus> |
| 97 | + </Commands> |
| 98 | + |
39 | 99 | <Commands package ="FSharpProjectPackage"> |
40 | 100 | <Groups> |
41 | 101 | <Group guid ="FSharpProjectCmdSet" id ="MyFSharpGroup" priority ="0x100" /> |
|
45 | 105 | <Groupguid="FSharpProjectCmdSet"id="FSharpSendReferencesToInteractiveGroup"priority="0x105" /> |
46 | 106 | <Groupguid="FSharpProjectCmdSet"id="FSharpSendProjectOutputToInteractiveGroup"priority="0x105" /> |
47 | 107 | </Groups> |
48 | | - <Menus> |
| 108 | + <Menus> |
49 | 109 | <Menu guid ="FSharpProjectCmdSet" id ="FSharpAddBelowMenu" priority ="0x305" type ="Menu"> |
50 | 110 | <Parentguid="FSharpProjectCmdSet"id="MyFSharpGroup"/> |
51 | 111 | <Strings> |
|
64 | 124 | </Menu> |
65 | 125 | </Menus> |
66 | 126 | <Buttons> |
| 127 | + <Buttonguid="guidFsiPackageCmdSet"id="cmdidFsiToolWindow"priority="0x8000"type="Button"><!-- low priority--> |
| 128 | + <Parentguid="guidSHLMainMenu"id="IDG_VS_WNDO_OTRWNDWS1"/> |
| 129 | +<!-- Icon guid="guidImages" id="bmpPic2" /--> |
| 130 | + <Iconguid="guidFsiConsoleBmp"id="bmpConsole" /> |
| 131 | + <Strings> |
| 132 | + <CommandName>FSharp.Interactive.ToolWindow</CommandName> |
| 133 | + <ButtonText>F# Interactive</ButtonText> |
| 134 | + </Strings> |
| 135 | + </Button> |
| 136 | + |
| 137 | +<!-- In Dev11+, shell now has |
| 138 | + <Button guid ="guidVSStd11" id ="cmdidInteractiveSessionInterrupt" priority ="0x100" type ="Button"> |
| 139 | + <Button guid ="guidVSStd11" id ="cmdidInteractiveSessionRestart" priority ="0x105" type ="Button"> |
| 140 | +--> |
| 141 | + <Buttonguid="guidFsiConsoleCmdSet"id="cmdidAttachDebugger"priority="0x0100"type="Button"> |
| 142 | + <Strings> |
| 143 | + <CommandName>FSharp.Interactive.AttachDebugger</CommandName> |
| 144 | + <ButtonText>Start Debugging</ButtonText> |
| 145 | + </Strings> |
| 146 | + <CommandFlag>DynamicVisibility | DefaultInvisible</CommandFlag> |
| 147 | + </Button> |
| 148 | + |
| 149 | + <Buttonguid="guidFsiConsoleCmdSet"id="cmdidDetachDebugger"priority="0x0101"type="Button"> |
| 150 | + <Strings> |
| 151 | + <CommandName>FSharp.Interactive.DetachDebugger</CommandName> |
| 152 | + <ButtonText>Stop Debugging</ButtonText> |
| 153 | + </Strings> |
| 154 | + <CommandFlag>DynamicVisibility | DefaultInvisible</CommandFlag> |
| 155 | + </Button> |
| 156 | + |
| 157 | +<!-- The following places a button on the F# Editor Context Menu--> |
| 158 | +<!-- In Dev11+, shell now has |
| 159 | + <Button guid ="guidVSStd11" id ="cmdidExecuteSelectionInInteractive" priority ="0x100" type ="Button"> |
| 160 | +--> |
| 161 | + <Button guid ="guidInteractive" id ="cmdidDebugSelection" priority ="0x106" type ="Button"> |
| 162 | + <Parentguid="guidSHLMainMenu"id="IDG_VS_CODEWIN_LANGUAGE"/> |
| 163 | + <Strings> |
| 164 | + <ButtonText>Debug In Interactive</ButtonText> |
| 165 | + <CommandName>Interactive.Debug.Selection.Context</CommandName> |
| 166 | + </Strings> |
| 167 | + <CommandFlag>DynamicVisibility | DefaultInvisible</CommandFlag> |
| 168 | + </Button> |
| 169 | + |
67 | 170 | <Button guid ="FSharpProjectCmdSet" id ="FSharpSendThisReferenceToInteractiveCmd" priority ="0x100" type ="Button"> |
68 | 171 | <Parent guid ="FSharpProjectCmdSet" id ="FSharpSendThisReferenceToInteractiveGroup"/> |
69 | 172 | <CommandFlag>DynamicVisibility</CommandFlag> |
|
204 | 307 | </Button> |
205 | 308 | </Buttons> |
206 | 309 | <Bitmaps> |
| 310 | + <Bitmapguid="guidImages"href="Resources\Images_32bit.bmp"usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows"/> |
| 311 | + <Bitmapguid="guidFsiConsoleBmp"href="Resources\TabIcon.png" /> |
| 312 | + <Bitmapguid="guidCancelEvaluationBmp"href="Resources\CancelEvaluation.bmp"usedList="bmpConsole"/> |
| 313 | + <Bitmapguid="guidResetSessionBmp"href="Resources\ResetSession.bmp"usedList="bmpConsole"/> |
207 | 314 | <Bitmapguid="FSharpMoveUpBmp"href="Resources\MoveUp.bmp"usedList="moveUp"/> |
208 | 315 | <Bitmapguid="FSharpMoveDownBmp"href="Resources\MoveDown.bmp"usedList="moveDown"/> |
209 | 316 | </Bitmaps> |
210 | 317 | </Commands> |
211 | 318 | <KeyBindings> |
| 319 | + <KeyBinding guid ="guidVSStd11" id ="cmdidExecuteSelectionInInteractive"editor="guidFSharpEditorFactory"key1="VK_RETURN"mod1="Alt" /> |
| 320 | + <KeyBinding guid ="guidVSStd11" id ="cmdidExecuteLineInInteractive"editor="guidFSharpEditorFactory"key1="VK_OEM_7"mod1="Alt" /> |
| 321 | + |
| 322 | +<!-- CRTL-ALT-F for FSI window - following similar bindings for "other windows"--> |
| 323 | + <KeyBindingguid="guidFsiPackageCmdSet"id="cmdidFsiToolWindow"editor="guidVSStd97"key1="F"mod1="Control Alt" /> |
| 324 | + |
| 325 | +<!-- CRTL-Break when in FSI ToolWindow is Interrupt--> |
| 326 | + <KeyBindingguid="guidVSStd11"id="cmdidInteractiveSessionInterrupt"editor="guidFsiToolWindow"key1="VK_CANCEL"mod1="Control" /> |
| 327 | + |
| 328 | +<!-- CRTL-Alt-R when in FSI ToolWindow is Reset--> |
| 329 | + <KeyBindingguid="guidVSStd11"id="cmdidInteractiveSessionRestart"editor="guidFsiToolWindow"key1="R"mod1="Control Alt" /> |
| 330 | + |
| 331 | +<!-- CRTL-Alt-C when in FSI ToolWindow is Clear All--> |
| 332 | + <KeyBindingguid="guidVSStd97"id="cmdidClearPane"editor="guidFsiToolWindow"key1="C"mod1="Control Alt" /> |
| 333 | + |
| 334 | +<!-- CRTL-Alt-D when in FSI ToolWindow is attach debugger--> |
| 335 | + <KeyBindingguid="guidFsiConsoleCmdSet"id="cmdidAttachDebugger"editor="guidFsiToolWindow"key1="D"mod1="Control Alt" /> |
| 336 | + |
| 337 | +<!-- CRTL-Shift-D when in FSI ToolWindow is detach debugger--> |
| 338 | + <KeyBindingguid="guidFsiConsoleCmdSet"id="cmdidDetachDebugger"editor="guidFsiToolWindow"key1="D"mod1="Control Shift" /> |
212 | 339 | <KeyBindingguid="FSharpProjectCmdSet"id="MoveUpCmd"editor="SlnExplorerGuid"key1="VK_UP"mod1="Alt" /> |
213 | 340 | <KeyBindingguid="FSharpProjectCmdSet"id="MoveDownCmd"editor="SlnExplorerGuid"key1="VK_DOWN"mod1="Alt" /> |
214 | 341 | </KeyBindings> |
215 | 342 | <Symbols> |
| 343 | +<!-- FSI-LINKAGE-POINT: choose the right package guid.--> |
| 344 | +<!-- GuidSymbol name="guidFsiPkg" value="{eeeeeeee-9342-42f1-8ea9-42f0e8a6be55}" /--><!-- fsi package guid--> |
| 345 | + <GuidSymbolname="guidFsiPkg"value="{91A04A73-4F2C-4E7C-AD38-C1A68E7DA05C}" /><!-- project system guid--> |
| 346 | + |
| 347 | + <GuidSymbolname="guidEditorFactory"value="{4EB7CCB7-4336-4FFD-B12B-396E9FD079A9}" /><!-- Linked to constants in project system--> |
| 348 | + <GuidSymbolname="guidFSharpEditorFactory"value="{8a5aa6cf-46e3-4520-a70a-7393d15233e9}" /><!-- FSharpEditorFactory Guid--> |
| 349 | + <GuidSymbolname="GUID_CMDSETID_StandardCommandSet2K"value="{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}" /><!-- See stdidcmd.h--> |
| 350 | + <GuidSymbolname="guidFsiToolWindow"value="{dee22b65-9761-4a26-8fb2-759b971d6dfc}" /> |
| 351 | + <GuidSymbolname="guidFsharpEditorUIContext"value="{63492653-460B-4bcc-B57B-233FD0F1F33D}" /> |
| 352 | + <GuidSymbolname="guidFsharpLanguageService"value="{BC6DD5A5-D4D6-4dab-A00D-A51242DBAF1B}" /> |
| 353 | + |
| 354 | +<!-- This is the guid used to group the menu commands together--> |
| 355 | + <GuidSymbolname="guidFsiPackageCmdSet"value="{0be3b0d7-4fc2-45bf-a168-957e8a8834d0}"> |
| 356 | + <IDSymbolname="MyMenuGroup"value="0x1020" /> |
| 357 | + <IDSymbolname="cmdidFsiToolWindow"value="0x0101" /> |
| 358 | + </GuidSymbol> |
| 359 | + |
| 360 | + <GuidSymbolname="guidImages"value="{43ba0ca6-658b-43a7-8773-b5f9506b4335}" > |
| 361 | + <IDSymbolname="bmpPic1"value="1" /> |
| 362 | + <IDSymbolname="bmpPic2"value="2" /> |
| 363 | + <IDSymbolname="bmpPicSearch"value="3" /> |
| 364 | + <IDSymbolname="bmpPicX"value="4" /> |
| 365 | + <IDSymbolname="bmpPicArrows"value="5" /> |
| 366 | + </GuidSymbol> |
| 367 | + |
| 368 | + <GuidSymbolname="guidFsiConsoleCmdSet"value="{0E455B35-F2EB-431b-A0BE-B268D8A7D17F}" > |
| 369 | + <IDSymbolname="cmdIDFsiConsoleContextMenu"value="0x2100" /> |
| 370 | + <IDSymbolname="MyMenuGroup"value="0x1020" /> |
| 371 | + <IDSymbolname="FsiConsoleEditGrp"value="0x1030" /> |
| 372 | + <IDSymbolname="FsiConsoleClearGrp"value="0x1040" /> |
| 373 | + <IDSymbolname="FsiConsoleSessionsGrp"value="0x1050" /> |
| 374 | + <IDSymbolname="cmdidFsiConsole"value="0x101" /> |
| 375 | + <IDSymbolname="cmdidAttachDebugger"value="0x104" /> |
| 376 | + <IDSymbolname="cmdidDetachDebugger"value="0x105" /> |
| 377 | + </GuidSymbol> |
| 378 | + |
| 379 | + <GuidSymbolname="guidFsiConsoleBmp"value="{01F8DC29-935A-4460-8D5D-F213B4CFA7EA}" > |
| 380 | + <IDSymbolname="bmpConsole"value="0x01" /> |
| 381 | + </GuidSymbol> |
| 382 | + |
| 383 | + <GuidSymbolname="guidCancelEvaluationBmp"value="{28D7068A-2B32-4CD0-AA0E-AB119744E7C0}" > |
| 384 | + <IDSymbolname="bmpConsole"value="0x01" /> |
| 385 | + </GuidSymbol> |
| 386 | + |
| 387 | + <GuidSymbolname="guidResetSessionBmp"value="{E8B33A9E-F5A0-492B-BB84-EC294A164CFD}" > |
| 388 | + <IDSymbolname="bmpConsole"value="0x01" /> |
| 389 | + </GuidSymbol> |
| 390 | + |
| 391 | + <GuidSymbolname="guidVSStd11"value="{D63DB1F0-404E-4B21-9648-CA8D99245EC3}" > |
| 392 | + <IDSymbolname="cmdidExecuteSelectionInInteractive" value ="0x018"/> |
| 393 | + <IDSymbolname="cmdidExecuteLineInInteractive" value ="0x019"/> |
| 394 | + <IDSymbolname="cmdidInteractiveSessionInterrupt" value ="0x01A"/> |
| 395 | + <IDSymbolname="cmdidInteractiveSessionRestart" value ="0x01B"/> |
| 396 | + </GuidSymbol> |
| 397 | + |
| 398 | + <GuidSymbolname="guidInteractive"value="{8B9BF77B-AF94-4588-8847-2EB2BFFD29EB}" > |
| 399 | + <IDSymbolname="cmdidDebugSelection" value ="0x01"/> |
| 400 | + </GuidSymbol> |
216 | 401 | <GuidSymbol name ="FSharpProjectPackage" value ="{91a04a73-4f2c-4e7c-ad38-c1a68e7da05c}" /> |
217 | 402 | <GuidSymbol name ="FSharpProjectCmdSet" value ="{75AC5611-A912-4195-8A65-457AE17416FB}"> |
218 | 403 | <IDSymbol name ="MyFSharpGroup" value ="0x4001"/> |
|