This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Breakpoint contextmenu: add "Add/Edit breakpoint condition"#4094
Closed
nyrosmith wants to merge 3 commits into
Closed
Breakpoint contextmenu: add "Add/Edit breakpoint condition"#4094nyrosmith wants to merge 3 commits into
nyrosmith wants to merge 3 commits into
Conversation
jasonLaster
reviewed
Sep 19, 2017
| accesskey: editConditionKey, | ||
| click: () => toggleConditionalBreakpointPanel(breakpoint.location.line) | ||
| label: addOrEditConditionLabel, | ||
| accesskey: addOrEditConditionKey, |
Contributor
There was a problem hiding this comment.
I think we should have two separate labels "Add Condition", "Edit Condition" that we toggle based on whether there is a condition. We do the same thing when you right click on the gutter.
| click: () => { | ||
| const sourceId = breakpoint.location.sourceId; | ||
| const line = breakpoint.location.line; | ||
| this.props.selectSource(sourceId, { line }); |
Contributor
There was a problem hiding this comment.
yes! good catch. Perhaps we move this invokation to this action: toggleConditionalBreakpointPanel
Contributor
bomsy
reviewed
Sep 22, 2017
| @@ -119,8 +120,14 @@ export function clearHighlightLineRange() { | |||
| } | |||
|
|
|||
| export function toggleConditionalBreakpointPanel(line: null | number) { | |||
Contributor
There was a problem hiding this comment.
@nyrosmith the flow issue had to do with the line input
This should fix it export function toggleConditionalBreakpointPanel(line?: number) {
Contributor
Author
There was a problem hiding this comment.
Thanks @bomsy for looking at it and helping me out!
Contributor
Author
|
/remind me to finish this PR tomorrow |
Contributor
Author
|
Closing because of #4157 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Associated Issue: NONE
@jasonLaster suggested this feature on slack
Summary of Changes