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

Constrain annotations to start within the length of the line when rendering #4921

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

chvp
Copy link
Member

@chvp chvp commented Aug 28, 2023

I opted to just highlight the whole line if we encounter one of these annotations. It could of course also be an option to try to highlight past the last character of a line.

Closes #4920.

I opted to just highlight the whole line if we encounter one of these
annotations. It could of course also be an option to try to highlight past the
last character of a line.
@chvp chvp added the bug Something isn't working label Aug 28, 2023
@chvp chvp requested a review from a team as a code owner August 28, 2023 09:51
@chvp chvp requested review from bmesuere and niknetniko and removed request for a team August 28, 2023 09:51
@chvp chvp changed the title Constrain annotations to start within the length of the line Constrain annotations to start within the length of the line when rendering Aug 28, 2023
Copy link
Member

@bmesuere bmesuere left a comment

Choose a reason for hiding this comment

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

This is used twice, so maybe extract it to a separate hasValidColumn function to make the code more readable?

@chvp chvp merged commit bf6a856 into main Aug 28, 2023
13 checks passed
@chvp chvp deleted the fix/annotations-past-end-of-line branch August 28, 2023 12:24
@chvp chvp temporarily deployed to naos August 28, 2023 12:24 — with GitHub Actions Inactive
@chvp chvp temporarily deployed to production August 28, 2023 12:29 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client-side processing of annotations sometimes eats code
3 participants