Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in debugger #232677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix typo in debugger #232677

wants to merge 1 commit into from

Conversation

c3-albert
Copy link

@c3-albert c3-albert commented Oct 30, 2024

Related issue: #232671

Fixing suspected typo in the debugger part of VS Code. This specifically addresses toggling breakpoints.

Testing:

  1. Open the debugger tab of VSCode
  2. Hover over the second icon of the breakpoints tab (should look like 2 circles, one shaded and one not)
  3. See the string "Toggle Active Breakpoints"

@@ -1664,7 +1664,7 @@ registerAction2(class extends Action2 {
constructor() {
super({
id: 'workbench.debug.viewlet.action.toggleBreakpointsActivatedAction',
title: localize2('activateBreakpoints', 'Toggle Activate Breakpoints'),
title: localize2('activateBreakpoints', 'Toggle Active Breakpoints'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think the originally wording is closer to correct, although a little awkward. It is toggling whether all the breakpoints are activated. It's not operating just on the active breakpoints, as your wording makes it sound.

Edge/Chrome devtools use a title that changes "Deactivate Breakpoints"/"Activate Breakpoints".

Maybe "Toggle Breakpoints Activated" would work better for us?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @roblourens. Can we instead add a contextkey to support having a mirror pair of actions whose titles match those of Chrome devtools? We could also add a second codicon to show at a glance the current button state. I don't think its toggle behaviour is currently clear enough visually.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about "Toggle Active Breakpointing"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or "Toggle Ignore All Breakpoints"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants