def GetDiagnosticsFromStoredRequest(self, qflist_format=False): if self.DiagnosticsForCurrentFileReady(): diagnostics = self._latest_file_parse_request.Response() # We set the diagnostics request to None because we want to prevent # repeated refreshing of the buffer with the same diags. Setting this to # None makes DiagnosticsForCurrentFileReady return False until the next # request is created. self._latest_file_parse_request = None if qflist_format: return vimsupport.ConvertDiagnosticsToQfList(diagnostics) else: return diagnostics return []
def UpdateWithNewDiagnostics( self, diags ): self._buffer_number_to_line_to_diags = _ConvertDiagListToDict( diags ) if self._user_options[ 'enable_diagnostic_signs' ]: self._next_sign_id = _UpdateSigns( self._buffer_number_to_line_to_diags, self._next_sign_id ) if self._user_options[ 'enable_diagnostic_highlighting' ]: _UpdateSquiggles( self._buffer_number_to_line_to_diags ) if self._user_options[ 'always_populate_location_list' ]: vimsupport.SetLocationList( vimsupport.ConvertDiagnosticsToQfList( diags ) )
def PopulateLocationList(self, diags): vimsupport.SetLocationList( vimsupport.ConvertDiagnosticsToQfList( self._ApplyDiagnosticFilter(diags)))
def _UpdateLocationList(self): vimsupport.SetLocationList( vimsupport.ConvertDiagnosticsToQfList(self._diagnostics))
def _UpdateLocationLists(self): vimsupport.SetLocationListsForBuffer( self._bufnr, vimsupport.ConvertDiagnosticsToQfList(self._diagnostics))
def _UpdateLocationLists( self, open_on_edit = False ): vimsupport.SetLocationListsForBuffer( self._bufnr, vimsupport.ConvertDiagnosticsToQfList( self._diagnostics ), open_on_edit )