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 missing active debug line + breakpoint glyph #137471

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

mamphis
Copy link

@mamphis mamphis commented Nov 18, 2021

This patch resolves #137436.
When multiple classes (e.g. codicon-debug-breakpoint,codicon-debug-hint)
are added they would disable the ::after content for consecutive classes
for the HTML Element.

This patch adds a parent element to the overlay and adds all classes as
seperated divs, so they can be drawn on top of each other.

2021-11-18_21-34-16

This PR fixes #137436.

This patch resolves microsoft#137436.
When multiple classes (e.g. codicon-debug-breakpoint,codicon-debug-hint)
are added they would disable the ::after content for consecutive classes
for the HTML Element.

This patch adds a parent element to the overlay and adds all classes as
seperated divs, so they can be drawn on top of each other.
@roblourens
Copy link
Member

Thanks, but do you happen to know why it broke?

@hediet
Copy link
Member

hediet commented Nov 19, 2021

I think my commit 49efe65 broke it.

Maybe it is the rule .codicon-debug-breakpoint.codicon-debug-stackframe::after that I might deleted by accident.

I think it would be easier to add that rule back instead of the fix suggested by this PR.

mamphis added 2 commits November 19, 2021 11:32
This path reverts the previous change of wrapping each class in a parent
div.
This readds a content-element for codicons which was removed in
49efe65.

The content applies when both the classes `codicon-debug-breakpoint
and `codicon-debug-stackframe`.
@hediet
Copy link
Member

hediet commented Nov 19, 2021

Thank you!

@hediet hediet merged commit e16fcb1 into microsoft:main Nov 19, 2021
@hediet hediet added this to the November 2021 milestone Nov 19, 2021
@mamphis
Copy link
Author

mamphis commented Nov 19, 2021

@hediet I think that might be the case. Because the content of .codicon-debug-breakpoint.codicon-debug-stackframe::after is \eb8a which differs from .codicon-debug-breakpoint::after and .codicon-debug-stackframe::after.

Reverted in the last commits. Works like a charm.

image

@mamphis mamphis deleted the multiple_codicons_for_line branch November 19, 2021 11:07
@gjsjohnmurray
Copy link
Contributor

Maybe edit the PR title to reflect what it ended up doing?

@roblourens roblourens changed the title glyphMargin: Wrapped codicons inside parent div Fix missing active debug line + breakpoint glyph Nov 19, 2021
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Nov 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2022
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.

Breakpoint Indicator Is Missing For Active Line
6 participants