Interface IDiagnosticsRefresher

All Known Subinterfaces:
ISaveContext
All Known Implementing Classes:
AbstractSaveContext, XMLExtensionsRegistry, XMLLanguageService, XMLTextDocumentService.SaveContext

public interface IDiagnosticsRefresher
Common API for triggering a diagnostics re-publish for a subset of open documents.

Implemented by both:

  • ISaveContext — the save-triggered path: documents are accumulated across all participants and validated in a single pass at the end of the save context.
  • XMLExtensionsRegistry — the async path: used by extensions that need to push diagnostics after a background event (e.g. workspace index scan completed) with no associated save event.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Schedules a diagnostics re-publication for all open documents accepted by filter.
  • Method Details

    • refreshDiagnostics

      void refreshDiagnostics(Predicate<DOMDocument> filter)
      Schedules a diagnostics re-publication for all open documents accepted by filter.
      Parameters:
      filter - predicate applied to each open DOMDocument.