csharpdeeb25a2 | 1 | using CascadeIDE.Contracts; |
| 2 | |
| 3 | namespace CascadeIDE.Features.Launch.Application; |
| 4 | |
| 5 | /// <summary>Текст баннера стартового проекта в хроме (ADR 0090 + F5).</summary> |
| 6 | [PresentationProjection("startup-project-ui")] |
| 7 | public static class StartupProjectBannerProjection |
| 8 | { |
| 9 | public static string Format( |
| 10 | bool hasStartupProject, |
| 11 | bool showLaunchProfilePicker, |
| 12 | string? selectedLaunchProfileId, |
| 13 | string startupProjectShortLabel) |
| 14 | { |
| 15 | if (!hasStartupProject) |
| 16 | return ""; |
| 17 | var basePart = $"Старт отладки (F5): {startupProjectShortLabel}"; |
| 18 | if (showLaunchProfilePicker && !string.IsNullOrEmpty(selectedLaunchProfileId)) |
| 19 | return $"{basePart} · {selectedLaunchProfileId}"; |
| 20 | return basePart; |
| 21 | } |
| 22 | } |
| 23 | |
View only · write via MCP/CIDE