tunnelvisionlabs / JustMyCodeToggle

Adds the Just My Code command button to Visual Studio
https://marketplace.visualstudio.com/items?itemName=SamHarwell.JustMyCodeToggle
MIT License
12 stars 7 forks source link

No 'Customization > Add command' entry #18

Open jnm2 opened 6 years ago

jnm2 commented 6 years ago

I wanted to try out what it would be like to put the toggle right after the ▶ Start button.

I expected it to my in this list under Debug/Just My Code Toggle or Debug/Toggle 'Just My Code', but I'm not finding it:

image

Happy to submit a PR if this makes sense to you. (Tips appreciated!)

drdamour commented 4 years ago

i wanted to do this same thing

jnm2 commented 4 years ago

@sharwell I'm looking at the source code and somehow missing the obvious. Do you know where it is that we would make the change to put this command under the Debug category?

jnm2 commented 4 years ago

I'm really coming up dry here. How do folks get a category applied to their command?

jnm2 commented 4 years ago

If you add this line inside the .vsct <Button> element, it shows up in the 'Add Command' window under the Debug category as "Debug.JustMyCodeToggle":

<Parent guid="guidVSDebugGroup" id="IDG_EXECUTION" />

(thanks to Oleksandr at https://gitter.im/Microsoft/extendvs?at=5e5254644609ce3a881e84bd)

But the problem is, we don't want a button in the main Debug menu. If I use IDG_DEBUG_TOOLBAR_WATCH as the parent, Debug.JustMyCodeToggle doesn't show up in Add Command anymore.