Updating to latest ycmd
Diagnostic & completion 'kind' changed in the REST API.
This commit is contained in:
parent
e9a318fc7c
commit
0cdb588207
@ -178,7 +178,7 @@ def OverlapLength( left_string, right_string ):
|
|||||||
length += 1
|
length += 1
|
||||||
|
|
||||||
|
|
||||||
COMPATIBLE_WITH_CORE_VERSION = 10
|
COMPATIBLE_WITH_CORE_VERSION = 11
|
||||||
|
|
||||||
def CompatibleWithYcmCore():
|
def CompatibleWithYcmCore():
|
||||||
try:
|
try:
|
||||||
|
@ -62,7 +62,8 @@ def _ConvertCompletionDataToVimData( completion_data ):
|
|||||||
if 'extra_menu_info' in completion_data:
|
if 'extra_menu_info' in completion_data:
|
||||||
vim_data[ 'menu' ] = ToUtf8IfNeeded( completion_data[ 'extra_menu_info' ] )
|
vim_data[ 'menu' ] = ToUtf8IfNeeded( completion_data[ 'extra_menu_info' ] )
|
||||||
if 'kind' in completion_data:
|
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:
|
if 'detailed_info' in completion_data:
|
||||||
vim_data[ 'info' ] = ToUtf8IfNeeded( completion_data[ 'detailed_info' ] )
|
vim_data[ 'info' ] = ToUtf8IfNeeded( completion_data[ 'detailed_info' ] )
|
||||||
|
|
||||||
|
@ -138,5 +138,5 @@ def _ConvertDiagListToDict( diag_list ):
|
|||||||
|
|
||||||
|
|
||||||
def _DiagnosticIsError( diag ):
|
def _DiagnosticIsError( diag ):
|
||||||
return diag[ 'kind' ] == 'E'
|
return diag[ 'kind' ] == 'ERROR'
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ def ConvertDiagnosticsToQfList( diagnostics ):
|
|||||||
'lnum' : line_num,
|
'lnum' : line_num,
|
||||||
'col' : location[ 'column_num' ] + 1,
|
'col' : location[ 'column_num' ] + 1,
|
||||||
'text' : ToUtf8IfNeeded( diagnostic[ 'text' ] ),
|
'text' : ToUtf8IfNeeded( diagnostic[ 'text' ] ),
|
||||||
'type' : diagnostic[ 'kind' ],
|
'type' : diagnostic[ 'kind' ][ 0 ],
|
||||||
'valid' : 1
|
'valid' : 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
third_party/ycmd
vendored
2
third_party/ycmd
vendored
@ -1 +1 @@
|
|||||||
Subproject commit fc7abe8948c0dc279cd2a5dd6b5595cb2a2172e3
|
Subproject commit 660c921059729eeb135b5b3c9bac40f158223fed
|
Loading…
Reference in New Issue
Block a user