YouCompleteMe/python/ycm/client
Ben Jackson 958d8f1eb5 Support subcommands which return detailed info
We display the detailed info text in the preview window. Vim's preview window is
designed to display actual files, not scratch data. Our approach is to open a
temporary file, even though that file is never written. This way, all of Vim's
existing settings for the preview window (and people's configured mappings) just
work. This is also consistent with showing the documentation in the preview
window during completion.

Other plugins have more complicated functions for this (such as eclim), or
Scratch.vim, but this approach is simple and doesn't require external
dependencies or additional settings.

Tests:

This required fixing a sort-of-bug in which the mock'd Vim module was always
only set once, and could not be changed outside of the module which created it.
This meant that it wasn't easy to have arbitrary tests, because it was dependent
on the order in which the tests execute as to whether the return from
MockVimModule() was actually the one in use.

The solution was to make the mock'd vim module a singleton, and use mock's
patch decorator to assign new MagicMock() instances to those methods in the vim
module which a particular test is interested in.
2015-09-20 21:30:23 +01:00
..
tests Support subcommands which return detailed info 2015-09-20 21:30:23 +01:00
__init__.py A (barely) working version of ycmd + client 2013-10-07 11:03:26 -07:00
base_request.py If errors are returned in addition to completion suggestions, print them 2015-08-17 01:13:20 +01:00
command_request.py Support subcommands which return detailed info 2015-09-20 21:30:23 +01:00
completer_available_request.py Revert "Revert "Check the server end point for available completer"" 2015-06-15 16:08:56 +02:00
completion_request.py Support subcommands which return detailed info 2015-09-20 21:30:23 +01:00
event_notification.py Ignoring the new "already being parsed" message 2014-12-10 13:46:10 -08:00
omni_completion_request.py Removing erroneous whitespace 2014-05-28 10:20:54 -07:00
ycmd_keepalive.py Changing copyright headers from me to Google 2014-01-13 11:08:43 -08:00