fix(lsp): deprecate vim.lsp.set_log_level, vim.lsp.get_log_path #35274

This commit is contained in:
Maria José Solano
2025-08-11 13:51:40 -07:00
committed by GitHub
parent b52f9a19b3
commit f7802dd5d5
6 changed files with 15 additions and 27 deletions

View File

@@ -4,13 +4,13 @@
--- When debugging language servers, it is helpful to enable extra-verbose logging of the LSP client
--- RPC events. Example:
--- ```lua
--- vim.lsp.set_log_level 'trace'
--- vim.lsp.log.set_level 'trace'
--- require('vim.lsp.log').set_format_func(vim.inspect)
--- ```
---
--- Then try to run the language server, and open the log with:
--- ```vim
--- :lua vim.cmd('tabnew ' .. vim.lsp.get_log_path())
--- :lua vim.cmd('tabnew ' .. vim.lsp.log.get_filename())
--- ```
---
--- (Or use `:LspLog` if you have nvim-lspconfig installed.)