Repository navigation
Fixes #46509 - Added key binding to disable a single breakpoint - #46629
Conversation
|
Thanks for your PR, however currently we are wrapping up the milestone so I will only have time to review this next milestone -> April |
|
Marco Beltempo (@marcobeltempo) thanks for your pr. I left feedback directly in the code, any way not something we will take into for april, pushing out. |
| } | ||
| }); | ||
|
|
||
| KeybindingsRegistry.registerCommandAndKeybindingRule({ |
There was a problem hiding this comment.
I would expect this command to be toggle enablement. So if my breakpoint is enabled to disable it and the other way around.
That way it is more flexible. In order to change that the name and the id should be changed.
| KeybindingsRegistry.registerCommandAndKeybindingRule({ | ||
| id: 'debug.disableBreakpoint', | ||
| weight: KeybindingsRegistry.WEIGHT.workbenchContrib(), | ||
| primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KEY_D, |
There was a problem hiding this comment.
No default keybiinding please.
| const continueAction = this.createMenuItem(nls.localize({ key: 'miContinue', comment: ['&& denotes a mnemonic'] }, "&&Continue"), 'workbench.action.debug.continue'); | ||
|
|
||
| const toggleBreakpoint = this.createMenuItem(nls.localize({ key: 'miToggleBreakpoint', comment: ['&& denotes a mnemonic'] }, "Toggle &&Breakpoint"), 'editor.debug.action.toggleBreakpoint'); | ||
| const disableBreakpoint = this.createMenuItem(nls.localize({ key: 'miDisableBreakpoint', comment: ['&& denotes a mnemonic'] }, "Disable &&Breakpoint"), 'debug.disableBreakpoint'); |
There was a problem hiding this comment.
I would not want this command in the debug menu, since it only works if there is a breakpoint on a line, and the debug menu is too global. So I would remove all this.
|
Isidor Nikolic (@isidorn) thank you for the feedback. I've made the requested changes. |
|
Thanks. This looks good, however this week we are in endgame week so we are focusing on testing. |
|
Marco Beltempo (@marcobeltempo) thank you for your PR, merging it in 🍻 |

Fixes #46509
This PR includes support to enable/disable a single breakpoint
using the quick open menu or thekeyboard shortcut.Ctrl+Alt+DNOTE