File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed
Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ local function main()
8686 require ' language' ' zh-cn'
8787 require ' library' .init ()
8888 loadDocMetas ()
89- test ' tclient'
89+ -- test 'tclient'
9090
9191 -- config.Lua.intelliSense.searchDepth = 5
9292 -- loadDocMetas()
@@ -100,7 +100,7 @@ local function main()
100100 require ' bee.platform' .OS = ' macOS'
101101 testAll ()
102102
103- test ' tclient'
103+ -- test 'tclient'
104104
105105 -- test 'full'
106106
Original file line number Diff line number Diff line change @@ -111,17 +111,10 @@ function mt:update()
111111 for _ , out in ipairs (outs ) do
112112 if out .method then
113113 local callback = self ._methods [out .method ]
114- if callback then
115- proto .doResponse {
116- id = out .id ,
117- params = callback (out .params ),
118- }
119- else
120- proto .doResponse {
121- id = out .id ,
122- params = nil ,
123- }
124- end
114+ proto .doResponse {
115+ id = out .id ,
116+ params = callback (out .params ),
117+ }
125118 else
126119 local callback = self ._waiting [out .id ]
127120 self ._waiting [out .id ] = nil
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ local util = require 'utility'
55
66--- @async
77lclient ():start (function (client )
8+ client :register (' workspace/configuration' , function ()
9+ return nil
10+ end )
11+
812 client :awaitRequest (' initialize' , {
913 clientInfo = {
1014 name = ' unit-test' ,
You can’t perform that action at this time.
0 commit comments