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 custom text properties for semantic highlighting #4164

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

puremourning
Copy link
Member

@puremourning puremourning commented Jul 19, 2023

We were supposed to allow users to set highlight groups for any token types that we don't understand, as servers can basically return anything they like. This didn't work and we just always complained about it.

Now we trap the "text property type doesn't exist" error and warn then. This allows users to specify the missing ones to stfu the error. Also improved the message to point to the help.

closes #4161


This change is Reviewable

We were supposed to allow users to set highlight groups for any token
types that we don't understand, as servers can basically return anything
they like. This didn't work and we just always complained about it.

Now we trap the "text property type doesn't exist" error and warn then.
This allows users to specify the missing ones to stfu the error. Also
improved the message to point to the help.
@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #4164 (1ca1512) into master (142a559) will decrease coverage by 0.18%.
The diff coverage is 88.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4164      +/-   ##
==========================================
- Coverage   89.02%   88.84%   -0.18%     
==========================================
  Files          34       34              
  Lines        4390     4393       +3     
==========================================
- Hits         3908     3903       -5     
- Misses        482      490       +8     

@puremourning puremourning added the Ship It! Manual override to merge a PR by maintainer label Jul 19, 2023
Copy link
Member Author

@puremourning puremourning left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @puremourning)

@mergify
Copy link
Contributor

mergify bot commented Jul 19, 2023

Thanks for sending a PR!

@mergify mergify bot merged commit f09c2f6 into master Jul 19, 2023
@puremourning puremourning deleted the fix-custom-props-semantic-highlighting branch July 19, 2023 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ship It! Manual override to merge a PR by maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant