diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-09-26 13:53:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 22:53:04 +0200 |
commit | c217766f7c32f17598563b16ef260322ce80bfc9 (patch) | |
tree | 57145567fc326ade5aabb29f3a48f9ee2712a6c1 /test/functional/fixtures/fake-lsp-server.lua | |
parent | 68c65b7732efdb637c4a0d1e2f2799932f654c59 (diff) | |
download | rneovim-c217766f7c32f17598563b16ef260322ce80bfc9.tar.gz rneovim-c217766f7c32f17598563b16ef260322ce80bfc9.tar.bz2 rneovim-c217766f7c32f17598563b16ef260322ce80bfc9.zip |
feat(lsp): use cjson for lsp rpc (#15759)
Diffstat (limited to 'test/functional/fixtures/fake-lsp-server.lua')
-rw-r--r-- | test/functional/fixtures/fake-lsp-server.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/fixtures/fake-lsp-server.lua b/test/functional/fixtures/fake-lsp-server.lua index 9579525502..297641849d 100644 --- a/test/functional/fixtures/fake-lsp-server.lua +++ b/test/functional/fixtures/fake-lsp-server.lua @@ -43,11 +43,11 @@ end local function read_message() local line = io.read("*l") local length = line:lower():match("content%-length:%s*(%d+)") - return vim.fn.json_decode(io.read(2 + length):sub(2)) + return vim.json.decode(io.read(2 + length):sub(2)) end local function send(payload) - io.stdout:write(format_message_with_content_length(vim.fn.json_encode(payload))) + io.stdout:write(format_message_with_content_length(vim.json.encode(payload))) end local function respond(id, err, result) |