csharpdeeb25a2 | 1 | using CascadeIDE.Cockpit.ComputingUnits.IdeHealth; |
| 2 | using CascadeIDE.Contracts; |
| 3 | |
| 4 | namespace CascadeIDE.Features.Shell.Application; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// Тексты полосы IDE Health из последнего <see cref="IdeHealthInputSnapshot"/> (без геттеров коллекций на главном VM). |
| 8 | /// </summary> |
| 9 | [PresentationProjection] |
| 10 | public static class IdeHealthStripPresentationProjection |
| 11 | { |
| 12 | public static string SolutionBuildLineText(IdeHealthInputSnapshot? snapshot) => |
| 13 | snapshot is { } s ? s.Solution.Build.LineText : ""; |
| 14 | |
| 15 | public static string SolutionBuildCockpitShort(IdeHealthInputSnapshot? snapshot) => |
| 16 | snapshot is { } s ? s.Solution.Build.CockpitShort : ""; |
| 17 | |
| 18 | public static string SolutionTestsLineText(IdeHealthInputSnapshot? snapshot) => |
| 19 | snapshot is { } s ? s.Solution.Tests.LineText : ""; |
| 20 | |
| 21 | public static string SolutionTestsCockpitShort(IdeHealthInputSnapshot? snapshot) => |
| 22 | snapshot is { } s ? s.Solution.Tests.CockpitShort : ""; |
| 23 | |
| 24 | public static string SolutionDebugLineText(IdeHealthInputSnapshot? snapshot) => |
| 25 | snapshot is { } s ? s.Solution.Debug.LineText : ""; |
| 26 | |
| 27 | public static string SolutionDebugCockpitShort(IdeHealthInputSnapshot? snapshot) => |
| 28 | snapshot is { } s ? s.Solution.Debug.CockpitShort : ""; |
| 29 | } |
| 30 | |
View only · write via MCP/CIDE