|
1 |
| -*channel.txt* For Vim version 8.2. Last change: 2022 Jun 04 |
| 1 | +*channel.txt* For Vim version 8.2. Last change: 2022 Jun 23 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -464,8 +464,10 @@ a close callback to the channel.
|
464 | 464 |
|
465 | 465 | To read all normal output from a RAW channel that is available: >
|
466 | 466 | let output = ch_readraw(channel)
|
467 |
| -To read the error output: > |
| 467 | +To read all error output from a RAW channel that is available:: > |
468 | 468 | let output = ch_readraw(channel, {"part": "err"})
|
| 469 | +Note that if the channel is in NL mode, ch_readraw() will only return one line |
| 470 | +for each call. |
469 | 471 |
|
470 | 472 | ch_read() and ch_readraw() use the channel timeout. When there is nothing to
|
471 | 473 | read within that time an empty string is returned. To specify a different
|
@@ -1552,36 +1554,5 @@ The "params" field is optional: >
|
1552 | 1554 | "params": <list|dict>
|
1553 | 1555 | }
|
1554 | 1556 |
|
1555 |
| -Depending on the use case, you can use the ch_evalexpr(), ch_sendexpr() and |
1556 |
| -ch_sendraw() functions on the same channel. |
1557 |
| - |
1558 |
| -A LSP request message has the following format (expressed as a Vim Dict). The |
1559 |
| -"params" field is optional: > |
1560 |
| -
|
1561 |
| - { |
1562 |
| - "jsonrpc": "2.0", |
1563 |
| - "id": <number>, |
1564 |
| - "method": <string>, |
1565 |
| - "params": <list|dict> |
1566 |
| - } |
1567 |
| -
|
1568 |
| -A LSP response message has the following format (expressed as a Vim Dict). The |
1569 |
| -"result" and "error" fields are optional: > |
1570 |
| -
|
1571 |
| - { |
1572 |
| - "jsonrpc": "2.0", |
1573 |
| - "id": <number>, |
1574 |
| - "result": <vim type> |
1575 |
| - "error": <dict> |
1576 |
| - } |
1577 |
| -
|
1578 |
| -A LSP notification message has the following format (expressed as a Vim Dict). |
1579 |
| -The "params" field is optional: > |
1580 |
| -
|
1581 |
| - { |
1582 |
| - "jsonrpc": "2.0", |
1583 |
| - "method": <string>, |
1584 |
| - "params": <list|dict> |
1585 |
| - } |
1586 |
| -
|
| 1557 | +< |
1587 | 1558 | vim:tw=78:ts=8:noet:ft=help:norl:
|
0 commit comments