| 1 | #nullable enable |
| 2 | |
| 3 | using CascadeIDE.Cockpit.DataBus; |
| 4 | using CascadeIDE.Models; |
| 5 | |
| 6 | namespace CascadeIDE.Features.SolutionWarmup.Application; |
| 7 | |
| 8 | /// <summary>Доступ оркестратора к UI/редактору без ссылки на ViewModels.</summary> |
| 9 | public sealed class SolutionWarmupHostCallbacks |
| 10 | { |
| 11 | public Func<string?> GetActiveCsFilePath { get; init; } = static () => null; |
| 12 | |
| 13 | public Func<IReadOnlyList<string>> GetOpenCsFilePaths { get; init; } = static () => []; |
| 14 | |
| 15 | public Action RunFeedAnchorsOnUi { get; init; } = static () => { }; |
| 16 | |
| 17 | public Func<SolutionWarmupSettings> GetWarmupSettings { get; init; } = static () => new(); |
| 18 | |
| 19 | public Func<HybridIndexSettings> GetHybridIndexSettings { get; init; } = static () => new(); |
| 20 | |
| 21 | public Func<HybridIndexStateChanged?> GetLatestHybridIndexState { get; init; } = static () => null; |
| 22 | } |
| 23 |