csharp4405de34 | 1 | #nullable enable |
| 2 | |
| 3 | namespace CascadeIDE.Services.Intercom; |
| 4 | |
| 5 | /// <summary>Прогрев L1 parse/model cache (ADR 0141 P2).</summary> |
| 6 | public static class IntercomRoslynL1Warmup |
| 7 | { |
| 8 | public static void WarmFile(IntercomAttachResolveCacheContext cacheContext, string absoluteFilePath) |
| 9 | { |
| 10 | if (!absoluteFilePath.EndsWith(".cs", StringComparison.OrdinalIgnoreCase)) |
| 11 | return; |
| 12 | |
| 13 | _ = AttachmentAnchorRoslynResolver.TryGetOrCreateEntry( |
| 14 | null, |
| 15 | absoluteFilePath, |
| 16 | cacheContext, |
| 17 | out _, |
| 18 | out _); |
| 19 | } |
| 20 | } |
| 21 | |
View only · write via MCP/CIDE