diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-03-30 14:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 14:49:58 +0100 |
commit | 226a6c3eaef2a7220841d3d5e69e1baf543b3d6f (patch) | |
tree | 394cafe6a57a124635941517b2acd94d9d850efa /test/functional/plugin/lsp/diagnostic_spec.lua | |
parent | 8fa7d833cf3a6c906c91c5acf9187b4544cf94be (diff) | |
download | rneovim-226a6c3eaef2a7220841d3d5e69e1baf543b3d6f.tar.gz rneovim-226a6c3eaef2a7220841d3d5e69e1baf543b3d6f.tar.bz2 rneovim-226a6c3eaef2a7220841d3d5e69e1baf543b3d6f.zip |
feat(diagnostic): add support for tags
The LSP spec supports two tags that can be added to diagnostics:
unnecessary and deprecated. Extend vim.diagnostic to be able to handle
these.
Diffstat (limited to 'test/functional/plugin/lsp/diagnostic_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp/diagnostic_spec.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/plugin/lsp/diagnostic_spec.lua b/test/functional/plugin/lsp/diagnostic_spec.lua index f73ffc29b0..f58016bf01 100644 --- a/test/functional/plugin/lsp/diagnostic_spec.lua +++ b/test/functional/plugin/lsp/diagnostic_spec.lua @@ -97,7 +97,6 @@ describe('vim.lsp.diagnostic', function() } diagnostics[1].code = 42 - diagnostics[1].tags = {"foo", "bar"} diagnostics[1].data = "Hello world" vim.lsp.diagnostic.on_publish_diagnostics(nil, { @@ -110,10 +109,9 @@ describe('vim.lsp.diagnostic', function() vim.lsp.diagnostic.get_line_diagnostics(diagnostic_bufnr, 1)[1], } ]] - eq({code = 42, tags = {"foo", "bar"}, data = "Hello world"}, result[1].user_data.lsp) + eq({code = 42, data = "Hello world"}, result[1].user_data.lsp) eq(42, result[1].code) eq(42, result[2].code) - eq({"foo", "bar"}, result[2].tags) eq("Hello world", result[2].data) end) end) |