neovim/runtime/lua/vim/lsp
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
..
_meta fix(lsp): add parentheses to generated union array types (#27560) 2024-02-21 12:31:56 +01:00
_changetracking.lua docs: improve/add documentation of Lua types 2024-03-01 23:02:18 +00:00
_completion.lua feat(lsp): support completion itemDefaults 2024-02-27 16:50:51 +01:00
_dynamic.lua refactor(types): more fixes (2) 2024-03-06 16:03:33 +00:00
_meta.lua fix(lsp): clean up duplicate and unused meta type annotations 2024-01-20 14:02:16 +01:00
_snippet_grammar.lua feat(lsp): add snippet API (#25301) 2023-10-21 08:51:26 +02:00
_tagfunc.lua fix(lsp): fix infinite loop on vim.lsp.tagfunc 2024-02-03 17:47:56 -05:00
_watchfiles.lua feat(lsp): add fswatch watchfunc backend 2024-03-01 23:00:20 +00:00
buf.lua refactor(lsp): merge subtypes and supertypes into typehierarchy (#28467) 2024-04-23 19:05:01 +02:00
client.lua fix(lsp): add "silent" option to vim.lsp.start (#28478) 2024-04-26 08:15:44 -05:00
codelens.lua fix(lsp): prevent code-lens refresh from becoming a permanent no-op (#28228) 2024-04-10 12:27:37 +02:00
diagnostic.lua fix(lsp): actually send diagnostic-tags back to the server 2024-03-06 11:12:41 +00:00
handlers.lua fix(vim.ui)!: change open() to return pcall-like values #28502 2024-04-25 04:15:58 -07:00
health.lua feat(lsp): add fswatch watchfunc backend 2024-03-01 23:00:20 +00:00
inlay_hint.lua refactor(lsp): rename foos_by_bar to bar_foos #28505 2024-04-26 04:25:55 -07:00
log.lua feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01:00
protocol.lua feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01:00
rpc.lua fix(lsp): add "silent" option to vim.lsp.start (#28478) 2024-04-26 08:15:44 -05:00
semantic_tokens.lua docs(lua): improvements for LSP and Diagnostic 2024-03-05 13:36:46 +00:00
sync.lua feat(docs): replace lua2dox.lua 2024-02-27 14:41:17 +00:00
util.lua docs: small fixes (#27364) 2024-03-12 13:51:53 +08:00