YouCompleteMe/python/ycm/tests/client
Ben Jackson 292de25c72 Add support for Java diagnostics and asynchronous messages
This implements an asynchronous message system using a long-poll request
to the server.

The server provides an endpoint /receive_messages which blocks until
either a timeout occurs or we receive a batch of asynchronous messages.
We send this request asynchronously and poll it 4 times a second to see
if we have received any messages.

The messages may either be simply for display (such as startup progress)
or diagnostics, which override the diagnostics returned by
OnFileReqdyToParse.

In the former case, we simply display the message, accepting that this
might be overwritten by any other message (indeed, requiring this), and
for the latter we fan out diagnostics to any open buffer for the file in
question.

Unfortunately, Vim has bugs related to timers when there is something
displayed (such as a "confirm" prompt or other), so we suspend
background timers when doing subcommands to avoid vim bugs. NOTE: This
requires a new version of Vim (detected by the presence of the
particular functions used).
2018-02-10 16:29:27 +00:00
..
__init__.py Move client tests to the main tests folder 2016-10-20 00:24:38 +02:00
base_request_test.py Optimize request building 2018-01-09 01:40:07 +01:00
command_request_test.py Do not install aliases from future 2017-03-18 18:24:48 +01:00
completion_request_test.py Fix bare except statement 2017-10-23 21:05:16 +02:00
debug_info_request_test.py Do not install aliases from future 2017-03-18 18:24:48 +01:00
messages_request_test.py Add support for Java diagnostics and asynchronous messages 2018-02-10 16:29:27 +00:00
omni_completion_request_tests.py Rewrite completion system 2017-06-21 02:32:57 +02:00