2 instantiations of InlayHintCache
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\Handlers\InlayHintCacheWrapper.cs (1)
14private readonly InlayHintCache _cache = new();
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlayHint\InlayHintCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new InlayHintCache();
17 references to InlayHintCache
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (5)
Cohost\Handlers\InlayHintCacheWrapper.cs (3)
10/// Provides a wrapper around the <see cref="InlayHintCache"/> so that Razor can control the lifecycle. 14private readonly InlayHintCache _cache = new(); 16public InlayHintCache GetCache() => _cache;
Cohost\Handlers\InlayHints.cs (2)
17var cache = cacheWrapper.GetCache(); 30var cache = cacheWrapper.GetCache();
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) 56var resultId = inlayHintCache.UpdateCache(new InlayHintCache.InlayHintCacheEntry(hints));
Handler\InlayHint\InlayHintResolveHandler.cs (4)
37var inlayHintCache = context.GetRequiredService<InlayHintCache>(); 45InlayHintCache inlayHintCache, 76private static InlineHint? GetCacheEntry(InlayHintResolveData resolveData, InlayHintCache inlayHintCache)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
InlayHint\CSharpInlayHintTests.cs (2)
131var cache = testLspServer.GetRequiredLspService<InlayHintCache>();