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(semanticTokens)!: token highlight groups #4667

Merged
merged 6 commits into from
Mar 20, 2024

Conversation

fannheyward
Copy link
Member

@fannheyward fannheyward commented Jun 5, 2023

BREAKING CHANGE:

  • CocSem + type to CocSem + Type + type
  • CocSem + modifier + type to CocSem + TypeMod + type + modifier
  • remove CocSem + modifier

The highlight group didn't need to be defined first.

  • semanticTokens.checkCurrent to the new highlight groups, only CocSemTypeXXXX, modifiers are added to one token type, we can't list them directly.

related #4659

@codecov
Copy link

codecov bot commented Jun 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.55%. Comparing base (1a8244e) to head (cb3d7be).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4667      +/-   ##
==========================================
- Coverage   98.57%   98.55%   -0.03%     
==========================================
  Files         273      273              
  Lines       26077    26049      -28     
  Branches     5392     5385       -7     
==========================================
- Hits        25705    25672      -33     
- Misses        219      223       +4     
- Partials      153      154       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oxalica
Copy link
Contributor

oxalica commented Jun 6, 2023

Isn't this creating multiple (about 2-4 times more) highlight spans on the same tokens in n/vim side?

And it does not fix the issue about priority in #4659.

@oxalica
Copy link
Contributor

oxalica commented Jun 7, 2023

It's now working for me. We should also update history.md and doc/coc.txt for this breaking change.

@oblitum
Copy link
Member

oblitum commented Jun 7, 2023

It's now working for me. We should also update history.md and doc/coc.txt for this breaking change.

And commit message? According to #4659 discussion, current commit/PR description is outdated.

@fannheyward
Copy link
Member Author

Needs rebase latest fixes and improve this.

@fannheyward fannheyward force-pushed the feat/semantic-tokens-hi branch 2 times, most recently from 113f59e to 7a655fb Compare February 27, 2024 07:56
CocSemType + type
CocSemMod + modifier
CocSemTypeMod + type + modifier

The highlight group didn't need to be defined first

related #4659
CocSemType + type
CocSemTypeMod + type + modifier
modifiers are added to one token type, we can't list them directly
@fannheyward fannheyward merged commit b01ae44 into master Mar 20, 2024
3 of 4 checks passed
@fannheyward fannheyward deleted the feat/semantic-tokens-hi branch March 20, 2024 13:13
@fannheyward
Copy link
Member Author

@oxalica merged to master, feedbacks are welcome.

fannheyward added a commit that referenced this pull request Mar 26, 2024
9190bfe feat(list): add --buffer to list buffer diags (#4958)
fb030d4 fix(defaultAction) fallback to default action on emtpy expression (#4954)
846994b fix(inlayHint): more compact padding highlight group (#4950)
b01ae44 feat(semanticTokens)!: token highlight groups (#4667)
8c85d6f fix(markdown): incorrect list indentation alignment in markdown parser (#4884)
0d66554 fix(inlayHint): hl_mode = 'replace' for neovim (#4949)
1a8244e chore(package): update dependencies (#4948)
4f68722 feat(client): upgrade to marked 7 (#4947)
574c12c feat(package): @types/node@18 (#4946)
d299c66 feat(menu): C-j/k to navigate menu (#4945)
34d3d9d chore(deps): bump follow-redirects from 1.15.4 to 1.15.6 (#4944)
aead8f4 chore(CI): use Node 20 (#4940)
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.

None yet

3 participants