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

multiline breakpoint widget - implementing #56521 #61859

Merged
merged 2 commits into from
Oct 29, 2018

Conversation

YisraelV
Copy link
Contributor

No description provided.

@msftclas
Copy link

msftclas commented Oct 26, 2018

CLA assistant check
All CLA requirements met.

@weinand
Copy link
Contributor

weinand commented Oct 26, 2018

Thanks for the PR.
What problem is this PR trying to solve?

@weinand weinand added the info-needed Issue requires more information from poster label Oct 26, 2018
@isidorn isidorn self-assigned this Oct 26, 2018
@isidorn
Copy link
Contributor

isidorn commented Oct 26, 2018

@weinand here's the issue for the PR #56521

@isidorn isidorn removed the info-needed Issue requires more information from poster label Oct 26, 2018
@@ -127,6 +127,16 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
}
}

public show(rangeOrPos: IRange | IPosition, _: number) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use a proper name, not _ even though it is not used

@@ -127,6 +127,16 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
}
}

public show(rangeOrPos: IRange | IPosition, _: number) {
let lineNum = this.input.getModel().getLineCount();
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer const to let if it will not be mutated, so can you please use const

@@ -144,6 +154,9 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
this.createBreakpointInput(dom.append(container, $('.inputContainer')));

this.input.getModel().setValue(this.getInputValue(this.breakpoint));
this.input.getModel().onDidChangeContent(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a listener, add it to the this.toDispose

}

public fitHeightToContent() {
let lineNum = this.input.getModel().getLineCount();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, please use const

@isidorn
Copy link
Contributor

isidorn commented Oct 26, 2018

@YisraelV great work, I really like it.
I commented directly in the code, so once you address that we can merge this in.

I checked for the css change, and I can no longer reproduce the original bug so we are good there. You do not have to worry about that.

@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Oct 26, 2018
@isidorn isidorn added this to the October 2018 milestone Oct 26, 2018
@YisraelV
Copy link
Contributor Author

@isidorn that's very nice to hear thank you very much.

I made the requested changes. Would you like me to squash my two commits into 1?

@isidorn
Copy link
Contributor

isidorn commented Oct 29, 2018

@YisraelV no need for squashing, merging it in. Thanks a lot!

@isidorn isidorn merged commit d71f741 into microsoft:master Oct 29, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants