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

feat(lsp): hide layout in codelenses in virtual text (#28794) #28807

Merged

Conversation

MangoIV
Copy link
Contributor

@MangoIV MangoIV commented May 17, 2024

Problem: layout i.e. whitespace that is part of codelenses is currently displayed as weird symbols and large amounts of spaces

Solution: replace all consecutive whitespace symbols with a single space character when trying to display codelenses as virtual text

This closes #28794

@github-actions github-actions bot added the lsp label May 17, 2024
@MangoIV

This comment was marked as off-topic.

@clason

This comment was marked as off-topic.

@MangoIV

This comment was marked as off-topic.

@clason

This comment was marked as off-topic.

@MangoIV MangoIV force-pushed the mangoiv/code-lenses-without-line-breaks branch from 4e124a8 to d4f6640 Compare May 17, 2024 10:49
@MangoIV
Copy link
Contributor Author

MangoIV commented May 17, 2024

force pushed to make the linter happy

Problem: layout i.e. whitespace that is part of codelenses is currently
displayed as weird symbols and large amounts of spaces

Solution: replace all consecutive whitespace symbols with a single space
character when trying to display codelenses as virtual text
@MangoIV MangoIV force-pushed the mangoiv/code-lenses-without-line-breaks branch from d4f6640 to ea0a916 Compare May 17, 2024 10:51
@MangoIV
Copy link
Contributor Author

MangoIV commented May 17, 2024

image

image

much better

@MangoIV

This comment was marked as off-topic.

@MangoIV MangoIV marked this pull request as ready for review May 17, 2024 11:12
@MangoIV
Copy link
Contributor Author

MangoIV commented May 17, 2024

should news.txt get an update with this PR or is this not "important enough"

@MangoIV
Copy link
Contributor Author

MangoIV commented May 17, 2024

wrt release, this is going into 0.11? or can I expect it to land in a minor version?

@clason
Copy link
Member

clason commented May 17, 2024

Features are not backported in general, so this will be 0.11 only. (Unless it's actually a fix; then it will be backported. @mfussenegger will decide.)

@clason

This comment was marked as off-topic.

@MangoIV
Copy link
Contributor Author

MangoIV commented May 17, 2024

thank you!

@mfussenegger mfussenegger merged commit d9a2acd into neovim:master May 21, 2024
32 of 33 checks passed
github-actions bot pushed a commit that referenced this pull request May 21, 2024
Problem: layout i.e. whitespace that is part of codelenses is currently
displayed as weird symbols and large amounts of spaces

Solution: replace all consecutive whitespace symbols with a single space
character when trying to display codelenses as virtual text

(cherry picked from commit d9a2acd)
Copy link
Contributor

Successfully created backport PR for release-0.10:

Copy link
Contributor

Git push to origin failed for release-0.10 with exitcode 1

@MangoIV
Copy link
Contributor Author

MangoIV commented May 21, 2024

Wow! Thank you for your work guys, this was a really cool experience to contribute, really swift and no hiccups! ❤️

@wookayin wookayin added this to the 0.10.1 milestone May 26, 2024
huangyingw pushed a commit to huangyingw/neovim that referenced this pull request May 31, 2024
…eovim#28807)

Problem: layout i.e. whitespace that is part of codelenses is currently
displayed as weird symbols and large amounts of spaces

Solution: replace all consecutive whitespace symbols with a single space
character when trying to display codelenses as virtual text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

layout that is part of a code lens should be filtered and not displayed
5 participants