mayerwin / vs-debug-single-thread

Debug Single Thread - Visual Studio Extension
https://marketplace.visualstudio.com/items?itemName=mayerwin.DebugSingleThread
MIT License
30 stars 4 forks source link

How do I move the toolbar buttons to the Debug toolbar? #4

Open daiplusplus opened 3 years ago

daiplusplus commented 3 years ago

I find these buttons very useful, but I'd rather have them on my Debug toolbar instead of the Standard Toolbar, however I don't see the two commands FocusOnCurrentThreadCmd and SwitchToNextThreadCmd anywhere in the Toolbar editor command-picker.

image

image

mayerwin commented 3 years ago

It should be possible to change the location of the buttons in the DebugSingleThread.vsct file. In particular the following which says the buttons are in their own group on the main toolbar:

<Groups>
  <Group guid="guidDebugSingleThreadCmdSet" id="guidDebugSingleThreadMenuGroup" priority="0x0901">
    <Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_STANDARD" />
  </Group>
</Groups>

It'd make sense to put the button in the Debug toolbar indeed. Can you check and submit a PR (might just take changing a single line of code)? Otherwise I'll try to look into it next time I work on the extension.

daiplusplus commented 3 years ago

I'll take a look at it, sure.

I'd like to know why the commands don't appear in the Add Command picker though...

mayerwin commented 3 years ago

This might be due to the way the commands are exposed by the extension (it is a lightweight add-in). Not sure.