neovim/test/functional/plugin/lsp
Gregory Anders 1aeb945553
feat(lsp): allow diagnostics to be disabled for a buffer (#15134)
Add two new methods to allow diagnostics to be disabled (and re-enabled)
in the current buffer. When diagnostics are disabled they are simply not
displayed to the user, but they are still sent by the server and
processed by the client.

Disabling diagnostics can be helpful in a number of scenarios. For
example, if one is working on a buffer with an overwhelming amount of
diagnostic warnings it can be helpful to simply disable diagnostics
without disabling the LSP client entirely. This also allows users more
flexibility on when and how they may want diagnostic information to be
displayed. For example, some users may not want to display diagnostic
information until after the buffer is first written.
2021-07-19 11:49:55 -07:00
..
codelens_spec.lua test(lsp): file URIs do not allow relative paths 2021-07-10 18:27:37 +01:00
diagnostic_spec.lua feat(lsp): allow diagnostics to be disabled for a buffer (#15134) 2021-07-19 11:49:55 -07:00
handler_spec.lua lsp: vim.lsp.diagnostic (#12655) 2020-11-12 22:21:34 -05:00