DiagnosticCollection
interface DiagnosticCollection : JsIterable<Tuple2<Uri, ReadonlyArray<Diagnostic>>> , DisposableLike(source)
A diagnostics collection is a container that manages a set of diagnostics. Diagnostics are always scopes to a diagnostics collection and a resource.
To get an instance of a DiagnosticCollection use createDiagnosticCollection.
Properties
Link copied to clipboard
The name of this diagnostic collection, for instance typescript. Every diagnostic from this collection will be associated with this name. Also, the task framework uses this name when defining problem matchers.
Functions
Link copied to clipboard
abstract fun forEach(callback: (uri: Uri, ReadonlyArray<Diagnostic>, collection: DiagnosticCollection) -> Unit, thisArg: JsAny? = definedExternally)
Iterate over each entry in this collection.
Link copied to clipboard
open operator fun get(key: Symbol.iterator): () -> JsIterator<Tuple2<Uri, ReadonlyArray<Diagnostic>>>
Get the diagnostics for a given resource. Note that you cannot modify the diagnostics-array returned from this call.
Link copied to clipboard
Replace diagnostics for multiple resources in this collection.
Assign diagnostics for given resource. Will replace existing diagnostics for that resource.