MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / _FormatYcmdDebugInfo

Function _FormatYcmdDebugInfo

python/ycm/client/debug_info_request.py:51–69  ·  view source on GitHub ↗
( ycmd )

Source from the content-addressed store, hash-verified

49
50
51def _FormatYcmdDebugInfo( ycmd ):
52 python = ycmd[ 'python' ]
53 clang = ycmd[ 'clang' ]
54 message = (
55 f'Server Python interpreter: { python[ "executable" ] }\n'
56 f'Server Python version: { python[ "version" ] }\n'
57 f'Server has Clang support compiled in: { clang[ "has_support" ] }\n'
58 f'Clang version: { clang[ "version" ] }\n' )
59 extra_conf = ycmd[ 'extra_conf' ]
60 extra_conf_path = extra_conf[ 'path' ]
61 if not extra_conf_path:
62 message += 'No extra configuration file found\n'
63 elif not extra_conf[ 'is_loaded' ]:
64 message += ( 'Extra configuration file found but not loaded\n'
65 f'Extra configuration path: { extra_conf_path }\n' )
66 else:
67 message += ( 'Extra configuration file found and loaded\n'
68 f'Extra configuration path: { extra_conf_path }\n' )
69 return message
70
71
72def _FormatCompleterDebugInfo( completer ):

Callers 1

FormatDebugInfoResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected