mirror of
https://github.com/neovim/neovim.git
synced 2026-06-17 17:21:16 +00:00
refactor(net): parameterize transport logging #40022
This commit is contained in:
@@ -637,7 +637,7 @@ function M.connect(host_or_path, port)
|
||||
|
||||
dispatchers = merge_dispatchers(dispatchers)
|
||||
|
||||
local transport = net_transport.TransportConnect.new(host_or_path, port)
|
||||
local transport = net_transport.TransportConnect.new(host_or_path, port, vim.lsp.log._self)
|
||||
return Client.new(dispatchers, transport, message_decoder, format_message_with_content_length)
|
||||
end
|
||||
end
|
||||
@@ -665,7 +665,7 @@ function M.start(cmd, dispatchers, extra_spawn_params)
|
||||
|
||||
dispatchers = merge_dispatchers(dispatchers)
|
||||
|
||||
local transport = net_transport.TransportRun.new(cmd, extra_spawn_params)
|
||||
local transport = net_transport.TransportRun.new(cmd, extra_spawn_params, vim.lsp.log._self)
|
||||
return Client.new(dispatchers, transport, message_decoder, format_message_with_content_length)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user