pub async fn get_diagnostic(context: &Context) -> Result<Diagnostic, Error>