pub fn SetDiagnostics(
Owner: String,
EntriesDTOValue: Value,
) -> ActionEffect<Arc<dyn DiagnosticManager>, CommonError, ()>Expand description
Creates an effect that, when executed, will set or update diagnostics for a given owner. This is the primary way extensions report problems to the host.
It uses the DiagnosticManager capability from the environment to perform
the operation, which involves updating the central diagnostic store.
§Parameters
Owner: A string identifying the source of the diagnostics (e.g., ‘typescript-linter’).EntriesDTOValue: Aserde_json::Valuerepresenting an array of entries. Each entry is a tuple:[UriComponentsValue, Option<Vec<MarkerDataDTOAsValue>>].
§Returns
An ActionEffect that resolves to () on success.