1 instantiation of InlayHintCache
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlayHint\InlayHintCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new InlayHintCache();
10 references to InlayHintCache
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)
37var inlayHintCache = context.GetRequiredService<InlayHintCache>(); 45InlayHintCache inlayHintCache, 76private static InlineHint? GetCacheEntry(InlayHintResolveData resolveData, InlayHintCache inlayHintCache)