neovim/runtime/lua
Gregory Anders 37d8e50459
fix(lsp): add "silent" option to vim.lsp.start (#28478)
vim.notify cannot be suppressed and it is not always necessary to
display a visible warning to the user if the RPC process fails to start.
For instance, a user may have the same LSP configuration across systems,
some of which may not have all of the LSP server executables installed.
In that case, the user receives a notification every time a file is
opened that they cannot suppress.

Instead of using vim.notify in vim.lsp.rpc, propagate a normal error up
through the call stack and use vim.notify in vim.lsp.start() only if
the "silent" option is not set.

This also updates lsp.start_client() to return an error message as its
second return value if an error occurred, rather than calling vim.notify
directly. Callers of lsp.start_client() will need to update call sites
appropriately if they wish to report errors to the user (or even better,
switch to vim.lsp.start).
2024-04-26 08:15:44 -05:00
..
nvim fix(healthcheck): expand vimrc variable (#28379) 2024-04-17 14:31:13 +08:00
provider fix(checkhealth): error in node.js check #28348 2024-04-15 09:23:22 -07:00
vim fix(lsp): add "silent" option to vim.lsp.start (#28478) 2024-04-26 08:15:44 -05:00
_vim9script.lua refactor(lua): rename tbl_islist => islist 2024-04-21 17:08:07 +02:00
coxpcall.lua build(lua): vendor coxpcall 2023-09-10 11:43:37 +02:00
editorconfig.lua fix(editorconfig): syntax error regression 2024-03-11 10:06:57 +00:00
man.lua fix(man): pass modifiers also to :tag (#27878) 2024-03-16 09:56:58 +08:00
tohtml.lua feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01:00