Hirokazu Hata
633322a020
lsp: do not assert even if the code does not exist in ErrorCodes ( #11981 )
...
There is ErrorCodes in the LSP specification, but in ResponseError.code
it is not used and the actual type is number.
Some language servers response original error cods and this is valid spec.
So we shouldn't assert even if the code does not exist in ErrorCodes.
ref: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#responseMessage
2020-04-21 15:42:48 +02:00
Justin M. Keyes
a446fbc8fa
lsp/rpc.lua: fix env
application function
...
Env vars must be merged with the current env.
2020-02-16 22:09:28 -08:00
Justin M. Keyes
b112fe828f
gen_vimdoc.py: generate LSP docs
2019-12-31 08:06:48 -08:00
Ashkan Kiani
07a2260e1d
LSP: Handle rpc RequestCancelled specifically. ( #11606 )
...
This was creating extra noise in errors that we should've been handling
internally.
Fixes #11515
2019-12-24 14:28:09 -08:00
Ashkan Kiani
0904ffe387
Bugfixes.
...
- Return after an error in RPC.
- Use an empty vim table for serialization.
2019-11-20 11:36:50 -08:00
Ashkan Kiani
00dc12c5d8
lua LSP client: initial implementation ( #11336 )
...
Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates.
Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions.
2019-11-13 21:55:26 +01:00