diff options
author | Gregory Anders <greg@gpanders.com> | 2021-09-27 07:57:53 -0700 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-10-02 20:37:09 -0600 |
commit | 0f554ef6f864a723736b061ee740daf419ff94e1 (patch) | |
tree | 4499d3627f556b72c793b2849d248a4b61c56f18 /test/functional/api/vim_spec.lua | |
parent | 112443995472a71e6882e449d3afc6d54d2808db (diff) | |
download | rneovim-0f554ef6f864a723736b061ee740daf419ff94e1.tar.gz rneovim-0f554ef6f864a723736b061ee740daf419ff94e1.tar.bz2 rneovim-0f554ef6f864a723736b061ee740daf419ff94e1.zip |
refactor(diagnostics): always make 'set' go through 'show'
Always make calls to `vim.diagnostic.set` call `vim.diagnostic.show`.
This creates an easier to reason about code path and is also less
surprising when users wish to override override `vim.diagnostic.show`
with custom behavior and `vim.diagnostic.set` is called with empty
diagnostics.
Functionally, the end result is the same: when `show` is called with an
empty diagnostics list, it just calls `hide` and then returns, which is
exactly what `reset` does right now.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
0 files changed, 0 insertions, 0 deletions