Update to latest ycmd
Upstream completions API changed.
This commit is contained in:
parent
9699e7990d
commit
e9a318fc7c
@ -43,8 +43,8 @@ class CompletionRequest( BaseRequest ):
|
|||||||
if not self._response_future:
|
if not self._response_future:
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
return [ _ConvertCompletionDataToVimData( x )
|
return _ConvertCompletionResponseToVimDatas(
|
||||||
for x in JsonFromFuture( self._response_future ) ]
|
JsonFromFuture( self._response_future ) )
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
vimsupport.PostVimMessage( str( e ) )
|
vimsupport.PostVimMessage( str( e ) )
|
||||||
return []
|
return []
|
||||||
@ -67,3 +67,8 @@ def _ConvertCompletionDataToVimData( completion_data ):
|
|||||||
vim_data[ 'info' ] = ToUtf8IfNeeded( completion_data[ 'detailed_info' ] )
|
vim_data[ 'info' ] = ToUtf8IfNeeded( completion_data[ 'detailed_info' ] )
|
||||||
|
|
||||||
return vim_data
|
return vim_data
|
||||||
|
|
||||||
|
|
||||||
|
def _ConvertCompletionResponseToVimDatas( response_data ):
|
||||||
|
return [ _ConvertCompletionDataToVimData( x )
|
||||||
|
for x in response_data[ 'completions' ] ]
|
||||||
|
2
third_party/ycmd
vendored
2
third_party/ycmd
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 94f793db7bff7a1ff9a3ba6855828e22afb3d52c
|
Subproject commit fc7abe8948c0dc279cd2a5dd6b5595cb2a2172e3
|
Loading…
Reference in New Issue
Block a user