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(language-client): register DiagnosticRefreshRequest #4928

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

fannheyward
Copy link
Member

yaegassy/coc-volar#327

  1. LSP 3.16 and before, only push mode, server publishDiagnostics
  2. LSP 3.17 added refreshSupport, server will ask client to refresh from workspace/diagnostic/refresh
  3. LSP 3.17 also added pull mode, server provides diagnosticProvider, client pull diagnostics onSave/onChange etc

coc.nvim enabled refreshSupport but didn't onRequest DiagnosticRefreshRequest, could't handle workspace/diagnostic/refresh. Because no diagnosticProvider, coc.nvim cancelled registration.

yaegassy/coc-volar#327

1. LSP 3.16 and before, only push mode, server `publishDiagnostics`
2. LSP 3.17 added `refreshSupport`, server will ask client to refresh from `workspace/diagnostic/refresh`
3. LSP 3.17 also added pull mode, server provides `diagnosticProvider`, client pull diagnostics onSave/onChange etc

coc.nvim enabled `refreshSupport` but didn't onRequest DiagnosticRefreshRequest, could't handle `workspace/diagnostic/refresh`. Because no `diagnosticProvider`, coc.nvim cancelled registration.
Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.55%. Comparing base (96d43df) to head (344000d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4928      +/-   ##
==========================================
- Coverage   98.57%   98.55%   -0.02%     
==========================================
  Files         273      273              
  Lines       26077    26077              
  Branches     5392     5392              
==========================================
- Hits        25706    25701       -5     
- Misses        218      221       +3     
- Partials      153      155       +2     

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

@fannheyward fannheyward merged commit dd4a5fa into master Mar 7, 2024
2 of 4 checks passed
@fannheyward fannheyward deleted the fix/lc-diagnostic-refreshSupport branch March 7, 2024 07:07
fannheyward added a commit that referenced this pull request Mar 11, 2024
84ce031 chore(doc): move coc-example-config.* to doc
1238cfc chore: typos (#4931)
37bb3c3 chore(docs): add coc-example-config in vim/lua (#4930)
0cf3c4c fix(list): set foldcolumn to 0 since it isn't applicable (#4929)
dd4a5fa fix(language-client): register DiagnosticRefreshRequest (#4928)
96d43df feat(outline): add outline.autoHide (#4926)
bd303cf feat(language-client): round progress percentage (#4916)
7f8ae84 fix(model): fire onTextChange on TextChangedI (#4875)
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

1 participant