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

Test: glyph margin decoration rendering improvements #180531

Closed
2 tasks done
joyceerhl opened this issue Apr 21, 2023 · 1 comment
Closed
2 tasks done

Test: glyph margin decoration rendering improvements #180531

joyceerhl opened this issue Apr 21, 2023 · 1 comment

Comments

@joyceerhl
Copy link
Collaborator

joyceerhl commented Apr 21, 2023

Refs: #179725, #5923

Complexity: 3

Authors: @alexdima @joyceerhl

Create Issue


This milestone we made improvements to how multiple decorations are rendered in the editor glyph margin (the region to the left of the line numbers where breakpoints appear).

Setup:

Test:

  1. There should only be one glyph margin lane when a file contains no margin decorations, only debug decorations (e.g. breakpoints, stackframe pointer) or only non-debug decorations (e.g. bookmarks, test decorations, diff revert icon)
    • set a breakpoint in a file and debug it--the breakpoint and stackframe pointer should still appear in the same glyph margin lane
  2. If a line in a file has both debug and non-debug decorations (e.g. both testing decorations and breakpoints, or both bookmarks and breakpoints), it should now be possible to see both at a glance
  3. If a line in a file has multiple non-debug decorations, the CSS for the decorations is no longer merged, and which decoration appears on top depends on context
    • open a test file from the VS Code repo, set a bookmark on a line that has a test decoration -> the test decoration should win
    • open a diff editor, make a change to a line that has a test decoration -> the diff icon should win

Known limitations:

  • You cannot yet click to remove a breakpoint if there is another non-debug decoration on that line (same as stable)
  • There isn't yet a way to see overflowed non-debug decorations (same as stable)
@joyceerhl joyceerhl added this to the April 2023 milestone Apr 21, 2023
@ghost ghost assigned isidorn and amunger Apr 25, 2023
@isidorn
Copy link
Contributor

isidorn commented Apr 25, 2023

Very cool! Only complaint about the experience is what you already mentioned

You cannot yet click to remove a breakpoint if there is another non-debug decoration on that line (same as stable)

Also I can not click to add a breakpoint, if there is another decoration on the line. This feels like the same, but let me know if you want me to create an issue.

@isidorn isidorn removed their assignment Apr 25, 2023
@amunger amunger removed their assignment Apr 25, 2023
@amunger amunger closed this as completed Apr 25, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants