diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-17 21:23:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-17 21:23:09 +0800 |
commit | 2f984c1a2baf162f72240ca7b7f3f530459a71f4 (patch) | |
tree | 360e1ff176c88de0d9a2667d14f7bb9b791e9e74 | |
parent | b6eed1d1f301706f51fc3dcef45f64ae4400eadd (diff) | |
download | lua-language-server-2f984c1a2baf162f72240ca7b7f3f530459a71f4.zip |
dont run this test
-rw-r--r-- | test.lua | 4 | ||||
-rw-r--r-- | test/tclient/lclient.lua | 15 | ||||
-rw-r--r-- | test/tclient/tests/single-mode.lua | 4 |
3 files changed, 10 insertions, 13 deletions
@@ -86,7 +86,7 @@ local function main() require 'language' 'zh-cn' require 'library'.init() loadDocMetas() - test 'tclient' + --test 'tclient' --config.Lua.intelliSense.searchDepth = 5 --loadDocMetas() @@ -100,7 +100,7 @@ local function main() require 'bee.platform'.OS = 'macOS' testAll() - test 'tclient' + --test 'tclient' --test 'full' 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', |