Update to latest ycmd

Upstream completions API changed.
This commit is contained in:
Strahinja Val Markovic 2014-06-02 15:15:45 -07:00
parent 9699e7990d
commit e9a318fc7c
2 changed files with 8 additions and 3 deletions

View File

@ -43,8 +43,8 @@ class CompletionRequest( BaseRequest ):
if not self._response_future:
return []
try:
return [ _ConvertCompletionDataToVimData( x )
for x in JsonFromFuture( self._response_future ) ]
return _ConvertCompletionResponseToVimDatas(
JsonFromFuture( self._response_future ) )
except Exception as e:
vimsupport.PostVimMessage( str( e ) )
return []
@ -67,3 +67,8 @@ def _ConvertCompletionDataToVimData( completion_data ):
vim_data[ 'info' ] = ToUtf8IfNeeded( completion_data[ 'detailed_info' ] )
return vim_data
def _ConvertCompletionResponseToVimDatas( response_data ):
return [ _ConvertCompletionDataToVimData( x )
for x in response_data[ 'completions' ] ]

2
third_party/ycmd vendored

@ -1 +1 @@
Subproject commit 94f793db7bff7a1ff9a3ba6855828e22afb3d52c
Subproject commit fc7abe8948c0dc279cd2a5dd6b5595cb2a2172e3