Get all diagnostics for a given resource.
A resource
An array of diagnostics objects or an empty array.
Get all diagnostics.
An array of uri-diagnostics tuples or an empty array.
Get all diagnostics for a given resource.