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: unable to detect Color completion item hex code for some LSPs #12501

Merged

Conversation

nik-rev
Copy link
Contributor

@nik-rev nik-rev commented Jan 12, 2025

In #12299 (comment) it was discovered that some LSPs also send additional documentation per LSP color, other than the color's hex code

Since our current approach is to check if the entire documentation matches a hex code, this meant the hex code can't be detected

With this PR, we now check against the end of the documentation, which means all LSPs which currently work will continue to work, but LSPs that send extra documentation per-color (like Dart LSP) will work as well.

@nik-rev nik-rev changed the title fix: Color completion items documentation not working for some LSPs fix: unable to detect Color completion item hex code for some LSPs Jan 12, 2025
helix-term/src/ui/completion.rs Outdated Show resolved Hide resolved
helix-term/src/ui/completion.rs Outdated Show resolved Hide resolved
nik-rev and others added 2 commits January 12, 2025 15:21
@the-mikedavis the-mikedavis merged commit e01775a into helix-editor:master Jan 12, 2025
6 checks passed
rmburg pushed a commit to rmburg/helix that referenced this pull request Jan 20, 2025
VishnuTejaBandi pushed a commit to VishnuTejaBandi/helix that referenced this pull request Jan 21, 2025
@nik-rev nik-rev deleted the colored-color-completions-fix branch January 22, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants