diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-06-24 13:23:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 13:23:28 -0700 |
| commit | 1e2fc1f9cd121ff16823e283a3dd074e668ce6b5 (patch) | |
| tree | 8965afa53f62edad2c4b5a639fd7bb3e3e840571 /test/functional/fixtures | |
| parent | 24e0c16fd6cb33a399772330cb80dfa4c1306284 (diff) | |
| parent | 444f175335f0fbe338931f977880e959afbb49b7 (diff) | |
| download | rneovim-1e2fc1f9cd121ff16823e283a3dd074e668ce6b5.tar.gz rneovim-1e2fc1f9cd121ff16823e283a3dd074e668ce6b5.tar.bz2 rneovim-1e2fc1f9cd121ff16823e283a3dd074e668ce6b5.zip | |
Merge pull request #14584 from akinsho/bugfix/vim-nil-conversion-logic
[RDY] fix(lsp): do not convert vim.NIL to nil in lists
Diffstat (limited to 'test/functional/fixtures')
| -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() |