Updating to latest ycmd

Diagnostic & completion 'kind' changed in the REST API.
This commit is contained in:
Strahinja Val Markovic 2014-06-03 14:49:53 -07:00
parent e9a318fc7c
commit 0cdb588207
5 changed files with 6 additions and 5 deletions

View File

@ -178,7 +178,7 @@ def OverlapLength( left_string, right_string ):
length += 1
COMPATIBLE_WITH_CORE_VERSION = 10
COMPATIBLE_WITH_CORE_VERSION = 11
def CompatibleWithYcmCore():
try:

View File

@ -62,7 +62,8 @@ def _ConvertCompletionDataToVimData( completion_data ):
if 'extra_menu_info' in completion_data:
vim_data[ 'menu' ] = ToUtf8IfNeeded( completion_data[ 'extra_menu_info' ] )
if 'kind' in completion_data:
vim_data[ 'kind' ] = ToUtf8IfNeeded( completion_data[ 'kind' ] )
vim_data[ 'kind' ] = ToUtf8IfNeeded(
completion_data[ 'kind' ] )[ 0 ].lower()
if 'detailed_info' in completion_data:
vim_data[ 'info' ] = ToUtf8IfNeeded( completion_data[ 'detailed_info' ] )

View File

@ -138,5 +138,5 @@ def _ConvertDiagListToDict( diag_list ):
def _DiagnosticIsError( diag ):
return diag[ 'kind' ] == 'E'
return diag[ 'kind' ] == 'ERROR'

View File

@ -218,7 +218,7 @@ def ConvertDiagnosticsToQfList( diagnostics ):
'lnum' : line_num,
'col' : location[ 'column_num' ] + 1,
'text' : ToUtf8IfNeeded( diagnostic[ 'text' ] ),
'type' : diagnostic[ 'kind' ],
'type' : diagnostic[ 'kind' ][ 0 ],
'valid' : 1
}

2
third_party/ycmd vendored

@ -1 +1 @@
Subproject commit fc7abe8948c0dc279cd2a5dd6b5595cb2a2172e3
Subproject commit 660c921059729eeb135b5b3c9bac40f158223fed