neovim/runtime/lua/vim/lsp
Mathias Fußenegger 9af3559643
feat(lsp): set workDoneToken in initialize request (#28182)
Problem:

Some servers don't report progress during initialize unless the client
sets the `workDoneToken`

See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initiatingWorkDoneProgress

In particular:

> There is no specific client capability signaling whether a client will
> send a progress token per request. The reason for this is that this is
> in many clients not a static aspect and might even change for every
> request instance for the same request type. So the capability is signal
> on every request instance by the presence of a workDoneToken property.

And:

> Servers can also initiate progress reporting using the
> window/workDoneProgress/create request. This is useful if the server
> needs to report progress outside of a request (for example the server
> needs to re-index a database). The token can then be used to report
> progress using the same notifications used as for client initiated
> progress.

So far progress report functionality was relying entirely on the latter.

Solution:

Set a `workDoneToken`

Closes https://github.com/neovim/neovim/issues/27938
2024-04-05 13:24:39 +02: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): move workspace folder logic into the client 2024-04-02 16:47:17 +01:00
client.lua feat(lsp): set workDoneToken in initialize request (#28182) 2024-04-05 13:24:39 +02:00
codelens.lua fix(lsp): create codelens request parameters for each buffer (#27699) 2024-03-17 21:04:59 +01:00
diagnostic.lua fix(lsp): actually send diagnostic-tags back to the server 2024-03-06 11:12:41 +00:00
handlers.lua refactor(types): more fixes (2) 2024-03-06 16:03:33 +00:00
health.lua feat(lsp): add fswatch watchfunc backend 2024-03-01 23:00:20 +00:00
inlay_hint.lua docs: improve/add documentation of Lua types 2024-03-01 23:02:18 +00: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 feat(lua): deprecate vim.tbl_add_reverse_lookup 2024-03-07 10:24:34 +01: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