Skip to content

Commit 50f4212

Browse files
committed
is_closing
1 parent 4ee8592 commit 50f4212

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lua/fittencode/integrations/completion/lsp_server.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ local dispatchers = {}
145145
local cmd = function(disp)
146146
-- Store dispatchers to use for showing progress notifications
147147
dispatchers = disp
148-
local res, closing, request_id = {}, false, 0
148+
149+
---@type vim.lsp.rpc.PublicClient
150+
---@diagnostic disable-next-line: missing-fields
151+
local res = {}
152+
local closing, request_id = false, 0
149153

150154
function res.request(method, params, callback)
151155
local method_impl = methods[method]
@@ -163,7 +167,7 @@ local cmd = function(disp)
163167
return false
164168
end
165169

166-
function res.is_closed()
170+
function res.is_closing()
167171
return closing
168172
end
169173

0 commit comments

Comments
 (0)