( self )
| 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 [] |
nothing calls this directly
no test coverage detected