Skip to content

Commit

Permalink
include the language server name in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fischerling committed Apr 30, 2024
1 parent e0a66ca commit 78b629f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ local function ls_rpc(ls, req)

local header_part = 'Content-Length: ' .. tostring(content_len)
local msg = header_part .. '\r\n\r\n' .. content_part
lspc.log('LSPC Sending: ' .. msg)
lspc.log('LSPC Sending -> ' .. ls.name .. ': ' .. msg)

ls.fd:write(msg)
ls.fd:flush()
Expand Down Expand Up @@ -1286,7 +1286,7 @@ local function ls_start(ls, init_options)
return
end

lspc.log('LS response(' .. event .. '): ' .. msg)
lspc.log(ls.name .. ' response(' .. event .. '): ' .. msg)
if event == 'STDERR' then
return
end
Expand Down

0 comments on commit 78b629f

Please sign in to comment.