MCPcopy
hub / github.com/ycm-core/YouCompleteMe / Response

Method Response

python/ycm/client/inlay_hints_request.py:46–64  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

44 self._response_future = None
45
46 def Response( self ):
47 if not self._response_future:
48 return []
49
50 response = self.HandleFuture( self._response_future,
51 truncate_message = True )
52
53 if not response:
54 return []
55
56 # Vim may not be able to convert the 'errors' entry to its internal format
57 # so we remove it from the response.
58 errors = response.pop( 'errors', [] )
59 for e in errors:
60 exception = MakeServerException( e )
61 _logger.error( exception )
62 DisplayServerException( exception, truncate_message = True )
63
64 return response.get( 'inlay_hints' ) or []

Callers

nothing calls this directly

Calls 5

MakeServerExceptionFunction · 0.90
DisplayServerExceptionFunction · 0.90
HandleFutureMethod · 0.80
popMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected