diff options
author | Akin Sowemimo <akin.sowemimo@gmail.com> | 2021-05-18 23:28:09 +0100 |
---|---|---|
committer | Akin Sowemimo <akin.sowemimo@gmail.com> | 2021-06-24 11:23:19 +0100 |
commit | 444f175335f0fbe338931f977880e959afbb49b7 (patch) | |
tree | 8965afa53f62edad2c4b5a639fd7bb3e3e840571 /test/functional/fixtures/fake-lsp-server.lua | |
parent | 24e0c16fd6cb33a399772330cb80dfa4c1306284 (diff) | |
download | rneovim-444f175335f0fbe338931f977880e959afbb49b7.tar.gz rneovim-444f175335f0fbe338931f977880e959afbb49b7.tar.bz2 rneovim-444f175335f0fbe338931f977880e959afbb49b7.zip |
fix(lsp): do not convert vim.NIL to nil in lists
Diffstat (limited to 'test/functional/fixtures/fake-lsp-server.lua')
-rw-r--r-- | test/functional/fixtures/fake-lsp-server.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/fixtures/fake-lsp-server.lua b/test/functional/fixtures/fake-lsp-server.lua index bcd5e22492..b7fddc8f29 100644 --- a/test/functional/fixtures/fake-lsp-server.lua +++ b/test/functional/fixtures/fake-lsp-server.lua @@ -464,6 +464,23 @@ function tests.invalid_header() io.stdout:write("Content-length: \r\n") end +function tests.decode_nil() + skeleton { + on_init = function(_) + return { capabilities = {} } + end; + body = function() + notify('start') + notify("workspace/executeCommand", { + arguments = { "EXTRACT_METHOD", {metadata = {field = vim.NIL}}, 3, 0, 6123, vim.NIL }, + command = "refactor.perform", + title = "EXTRACT_METHOD" + }) + notify('finish') + end; + } +end + -- Tests will be indexed by TEST_NAME local kill_timer = vim.loop.new_timer() |