neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.16k stars 954 forks source link

feat(diagnostic): add `DiagnosticWithFileType` #4881

Closed hexh250786313 closed 5 months ago

hexh250786313 commented 5 months ago

add DiagnosticWithFileType to support highlight diagnostic buffer

I am currently working on porting https://github.com/yoavbls/pretty-ts-errors to coc (https://github.com/hexh250786313/coc-pretty-ts-errors). It requires that the diagnostic's floating buffer supports a custom filetype to highlight and format the diagnostic information. And the PR is for this purpose.

codecov[bot] commented 5 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (392264f) 98.61% compared to head (748cb57) 98.57%.

Files Patch % Lines
src/diagnostic/buffer.ts 50.00% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4881 +/- ## ========================================== - Coverage 98.61% 98.57% -0.05% ========================================== Files 273 273 Lines 26007 26009 +2 Branches 5394 5395 +1 ========================================== - Hits 25648 25638 -10 - Misses 209 219 +10 - Partials 150 152 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.