diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2021-12-17 19:38:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 19:38:33 -0700 |
commit | 818ae74eaf6f4538ca61ee4ba703543b0caaff10 (patch) | |
tree | 1a6397857c66302d91eb21b2aaf8878c19a21df5 /runtime/lua/vim/lsp.lua | |
parent | 36c401db243da08a60bde7f2c42e1ed9f5204c85 (diff) | |
download | rneovim-818ae74eaf6f4538ca61ee4ba703543b0caaff10.tar.gz rneovim-818ae74eaf6f4538ca61ee4ba703543b0caaff10.tar.bz2 rneovim-818ae74eaf6f4538ca61ee4ba703543b0caaff10.zip |
fix(diagnostic): respect "if_many" source option for virtual text (#16653)
The `prefix_source` function only evaluates the sources from the
diagnostics passed to it; however, because each namespace draws its own
virtual text, its diagnostics will never contain more than a single
source (by definition). This requires changing the semantics of what
"if_many" means from "multiple sources in a single 'batch' of
diagnostics" to "multiple sources of all diagnostics within a buffer".
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
0 files changed, 0 insertions, 0 deletions