summaryrefslogtreecommitdiff
path: root/test/tclient
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-17 21:23:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-17 21:23:09 +0800
commit2f984c1a2baf162f72240ca7b7f3f530459a71f4 (patch)
tree360e1ff176c88de0d9a2667d14f7bb9b791e9e74 /test/tclient
parentb6eed1d1f301706f51fc3dcef45f64ae4400eadd (diff)
downloadlua-language-server-2f984c1a2baf162f72240ca7b7f3f530459a71f4.zip
dont run this test
Diffstat (limited to 'test/tclient')
-rw-r--r--test/tclient/lclient.lua15
-rw-r--r--test/tclient/tests/single-mode.lua4
2 files changed, 8 insertions, 11 deletions
diff --git a/test/tclient/lclient.lua b/test/tclient/lclient.lua
index ae876400..50f13946 100644
--- a/test/tclient/lclient.lua
+++ b/test/tclient/lclient.lua
@@ -111,17 +111,10 @@ function mt:update()
for _, out in ipairs(outs) do
if out.method then
local callback = self._methods[out.method]
- if callback then
- proto.doResponse {
- id = out.id,
- params = callback(out.params),
- }
- else
- proto.doResponse {
- id = out.id,
- params = nil,
- }
- end
+ proto.doResponse {
+ id = out.id,
+ params = callback(out.params),
+ }
else
local callback = self._waiting[out.id]
self._waiting[out.id] = nil
diff --git a/test/tclient/tests/single-mode.lua b/test/tclient/tests/single-mode.lua
index bdf831f4..e0773a7e 100644
--- a/test/tclient/tests/single-mode.lua
+++ b/test/tclient/tests/single-mode.lua
@@ -5,6 +5,10 @@ local util = require 'utility'
---@async
lclient():start(function (client)
+ client:register('workspace/configuration', function ()
+ return nil
+ end)
+
client:awaitRequest('initialize', {
clientInfo = {
name = 'unit-test',