1
0
forked from aniani/vim

patch 8.2.4788: large payload for LSP message not tested

Problem:    Large payload for LSP message not tested.
Solution:   Add a test with a large LSP payload. (Yegappan Lakshmanan,
            closes #10223)
This commit is contained in:
Yegappan Lakshmanan
2022-04-19 10:25:13 +01:00
committed by Bram Moolenaar
parent 9bd3ce22e3
commit bac9a9e5c2
4 changed files with 46 additions and 19 deletions

View File

@@ -2031,6 +2031,8 @@ channel_consume(channel_T *channel, ch_part_T part, int len)
* Collapses the first and second buffer for "channel"/"part".
* Returns FAIL if that is not possible.
* When "want_nl" is TRUE collapse more buffers until a NL is found.
* When the channel part mode is "lsp", collapse all the buffers as the http
* header and the JSON content can be present in multiple buffers.
*/
int
channel_collapse(channel_T *channel, ch_part_T part, int want_nl)