Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion extension/src/views/AspireAppHostTreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,14 @@ function buildResourceTooltip(resource: ResourceJson): vscode.MarkdownString {
if (reports) {
const entries = Object.entries(reports).sort(([a], [b]) => a.localeCompare(b));
for (const [name, report] of entries) {
const icon = report.status === HealthStatus.Healthy ? '$(pass)' : report.status === HealthStatus.Degraded ? '$(warning)' : '$(error)';
let icon = '❓';
if (report.status === HealthStatus.Healthy) {
icon = '✅';
Comment thread
JamesNK marked this conversation as resolved.
} else if (report.status === HealthStatus.Degraded) {
icon = '⚠️';
} else if (report.status === HealthStatus.Unhealthy) {
icon = '❌';
}
md.appendMarkdown(`${icon} ${name}: ${report.status ?? 'Unknown'}${report.description ? ` - ${report.description}` : ''}\n\n`);
Comment thread
JamesNK marked this conversation as resolved.
}
}
Expand Down
Loading