MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / _GetCompletionInfoField

Function _GetCompletionInfoField

python/ycm/client/completion_request.py:170–183  ·  view source on GitHub ↗
( completion_data )

Source from the content-addressed store, hash-verified

168
169
170def _GetCompletionInfoField( completion_data ):
171 info = completion_data.get( 'detailed_info', '' )
172
173 if 'extra_data' in completion_data:
174 docstring = completion_data[ 'extra_data' ].get( 'doc_string', '' )
175 if docstring:
176 if info:
177 info += '\n' + docstring
178 else:
179 info = docstring
180
181 # This field may contain null characters e.g. \x00 in Python docstrings. Vim
182 # cannot evaluate such characters so they are removed.
183 return info.replace( '\x00', '' )
184
185
186def ConvertCompletionDataToVimData( completion_data ):

Callers 1

Calls 1

getMethod · 0.80

Tested by

no test coverage detected