RPC: turn errors from async calls into notifications

Previously, nvim sent a response with invalid request id (UINT64_MAX).
In functionaltests, catch unexpected error notifications in after_each().
This commit is contained in:
Björn Linse
2018-12-01 16:44:36 +01:00
parent 07ad5d71ab
commit 8b42249cdd
5 changed files with 45 additions and 3 deletions

View File

@@ -181,6 +181,8 @@ Standard Features ~
- Clients should call |nvim_set_client_info()| after connecting, so users and
plugins can detect the client by handling the |ChanInfo| event. This
avoids the need for special variables or other client hints.
- Clients should handle |nvim_error_event| notifications, which will be sent
if an async request to nvim was rejected or caused an error.
Package Naming ~