mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
Merge #12468 'lsp: logging'
This commit is contained in:
@@ -761,8 +761,12 @@ do
|
|||||||
text_document_did_change_handler = function(_, bufnr, changedtick,
|
text_document_did_change_handler = function(_, bufnr, changedtick,
|
||||||
firstline, lastline, new_lastline, old_byte_size, old_utf32_size,
|
firstline, lastline, new_lastline, old_byte_size, old_utf32_size,
|
||||||
old_utf16_size)
|
old_utf16_size)
|
||||||
local _ = log.debug() and log.debug("on_lines", bufnr, changedtick, firstline,
|
|
||||||
lastline, new_lastline, old_byte_size, old_utf32_size, old_utf16_size, nvim_buf_get_lines(bufnr, firstline, new_lastline, true))
|
local _ = log.debug() and log.debug(
|
||||||
|
string.format("on_lines bufnr: %s, changedtick: %s, firstline: %s, lastline: %s, new_lastline: %s, old_byte_size: %s, old_utf32_size: %s, old_utf16_size: %s",
|
||||||
|
bufnr, changedtick, firstline, lastline, new_lastline, old_byte_size, old_utf32_size, old_utf16_size),
|
||||||
|
nvim_buf_get_lines(bufnr, firstline, new_lastline, true)
|
||||||
|
)
|
||||||
|
|
||||||
-- Don't do anything if there are no clients attached.
|
-- Don't do anything if there are no clients attached.
|
||||||
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then
|
if tbl_isempty(all_buffer_active_clients[bufnr] or {}) then
|
||||||
|
|||||||
@@ -376,7 +376,6 @@ local function start(cmd, cmd_args, handlers, extra_spawn_params)
|
|||||||
--@param params (table): Parameters for the invoked LSP method
|
--@param params (table): Parameters for the invoked LSP method
|
||||||
--@returns (bool) `true` if notification could be sent, `false` if not
|
--@returns (bool) `true` if notification could be sent, `false` if not
|
||||||
local function notify(method, params)
|
local function notify(method, params)
|
||||||
local _ = log.debug() and log.debug("rpc.notify", method, params)
|
|
||||||
return encode_and_send {
|
return encode_and_send {
|
||||||
jsonrpc = "2.0";
|
jsonrpc = "2.0";
|
||||||
method = method;
|
method = method;
|
||||||
|
|||||||
Reference in New Issue
Block a user