LineCheck

data class LineCheck(val diagnostics: List<LineDiagnostic>, val complete: Boolean = true)(source)

One line's result from TextDiagnosticsChecker.check: the diagnostics to underline, and whether the line was completely checked. A complete result is kept until the line's text changes. An incomplete one, such as when a service the checker relies on could not be reached, is underlined and the line goes to TextDiagnosticsChecker.check again on each refresh until a complete result comes back. Each refresh, after any edit, sends every incomplete line again, so a checker that retries something slow should hold off on its own and answer incomplete meanwhile. A failure that will not pass, such as a line the service refuses, is complete, or the line is sent again for as long as it stays.

Constructors

Link copied to clipboard
constructor(diagnostics: List<LineDiagnostic>, complete: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard