fix(lsp): set fallback client name properly

This commit is contained in:
zeertzjq 2024-02-08 07:34:38 +08:00 committed by GitHub
parent 59cf827f99
commit 5785c32f11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,7 @@ end
--- @param config lsp.ClientConfig --- @param config lsp.ClientConfig
--- @return lsp.Client --- @return lsp.Client
function Client.new(id, rpc, handlers, offset_encoding, config) function Client.new(id, rpc, handlers, offset_encoding, config)
local name = config.name local name = config.name or tostring(id)
--- @class lsp.Client --- @class lsp.Client
local self = { local self = {