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

Breakpoint madness in wrapped line #20601

Closed
joaomoreno opened this issue Feb 14, 2017 · 8 comments
Closed

Breakpoint madness in wrapped line #20601

joaomoreno opened this issue Feb 14, 2017 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@joaomoreno
Copy link
Member

image

@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Feb 15, 2017
@isidorn isidorn added this to the February 2017 milestone Feb 15, 2017
@isidorn
Copy link
Contributor

isidorn commented Feb 16, 2017

Had to revert the fix due to #20688
I checked the editor API and my use case is not supported - namely to have a decoration that spans the whole line (which can be wrapped in multiple lines) but that the glyph margin is only decorated on the first line.

@rebornix @alexandrudima would it be possible to add an option in the decoration API to only show the glyph margin on the first view line even if the line spans multiple view lines?

@isidorn isidorn reopened this Feb 16, 2017
@isidorn isidorn modified the milestones: On Deck, February 2017 Feb 16, 2017
@joaomoreno
Copy link
Member Author

joaomoreno commented Feb 16, 2017

This is madness.

madness

@isidorn
Copy link
Contributor

isidorn commented Feb 16, 2017

This is Sparta?

@isidorn
Copy link
Contributor

isidorn commented Nov 13, 2017

Friendly ping @alexandrudima would it be possible to add an option in the decoration API to only show the glyph margin on the first view line even if the line spans multiple view lines?

@joaomoreno
Copy link
Member Author

Similar: #37249

@alexdima
Copy link
Member

@isidorn I've seen breakpoints are created on the whole line today (from column 1 to infinity).

I wonder if breakpoints don't belong "on the first non-whitespace character of a line" as a closer approximation to the concept of a statement than the entire line.


@joaomoreno I thought you never write code that goes over 80 chars, how could you have hit this :)

I never hit it, cause all my code lines are under 80 characters! 🥇

@isidorn isidorn modified the milestones: On Deck, November 2017 Nov 14, 2017
@isidorn
Copy link
Contributor

isidorn commented Nov 14, 2017

@alexandrudima thanks for the suggestoin, after some refactoring this actually seems to be working fine.
As you suggested I changed that the breakpoint is set on the first non whitespace character of the line. I do not treat specially the case when the line gets deleted, but I just update the decoration range as the editor tells me. Luckily I already have a de-duping mechanism in my model that takes care of the case when the whole file gets deleted and all the breakpoints get set to the first line and column

@joaomoreno
Copy link
Member Author

joaomoreno commented Nov 15, 2017

@alexandrudima You either crafted the most powerful GitHub issue search query to find that one or you were saving it for REVENGE.

gif

@RMacfarlane RMacfarlane added the verified Verification succeeded label Dec 6, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants