2 instantiations of InlayHintCache
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\Handlers\InlayHints.cs (1)
22s_resolveCache ??= new();
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlayHint\InlayHintCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new InlayHintCache();
13 references to InlayHintCache
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\Handlers\InlayHints.cs (1)
18private static InlayHintCache? s_resolveCache;
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Handler\InlayHint\InlayHintCache.cs (1)
7using static Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintCache;
Handler\InlayHint\InlayHintCacheFactory.cs (1)
11[ExportCSharpVisualBasicLspServiceFactory(typeof(InlayHintCache)), Shared]
Handler\InlayHint\InlayHintHandler.cs (4)
44var inlayHintCache = context.GetRequiredLspService<InlayHintCache>(); 50internal static async Task<LSP.InlayHint[]?> GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, LSP.Range range, InlineHintsOptions options, bool displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) 58var resultId = inlayHintCache.UpdateCache(new InlayHintCache.InlayHintCacheEntry(hints));
Handler\InlayHint\InlayHintResolveHandler.cs (4)
36var inlayHintCache = context.GetRequiredService<InlayHintCache>(); 44InlayHintCache inlayHintCache, 75private static InlineHint? GetCacheEntry(InlayHintResolveData resolveData, InlayHintCache inlayHintCache)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
InlayHint\CSharpInlayHintTests.cs (2)
131var cache = testLspServer.GetRequiredLspService<InlayHintCache>();