1 instantiation of VSInternalReferenceItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\References\FindUsagesLSPContext.cs (1)
215var result = new VSInternalReferenceItem
22 references to VSInternalReferenceItem
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Cohost\Handlers\FindAllReferences.cs (2)
20public static async Task<SumType<VSInternalReferenceItem, Location>[]?> FindReferencesAsync(Workspace workspace, Document document, LinePosition linePosition, bool supportsVSExtensions, CancellationToken cancellationToken) 26var progress = BufferedProgress.Create<SumType<VSInternalReferenceItem, Location>[]>(progress: null);
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\References\FindAllReferencesHandler.cs (3)
25internal sealed class FindAllReferencesHandler : ILspServiceDocumentRequestHandler<VSInternalReferenceParams, LSP.SumType<VSInternalReferenceItem, LSP.Location>[]?> 48public async Task<SumType<VSInternalReferenceItem, LSP.Location>[]?> HandleRequestAsync( 69IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> progress,
Handler\References\FindUsagesLSPContext.cs (9)
33private readonly IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> _progress; 54private readonly Dictionary<int, SumType<VSInternalReferenceItem, LSP.Location>> _definitionsWithoutReference = []; 71private readonly AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.Location>> _workQueue; 77IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> progress, 94_workQueue = new AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.Location>>( 178private async Task<SumType<VSInternalReferenceItem, LSP.Location>?> GenerateVSReferenceItemAsync( 202private static SumType<VSInternalReferenceItem, LSP.Location>? CreateVsReference( 215var result = new VSInternalReferenceItem 371private ValueTask ReportReferencesAsync(ImmutableSegmentedList<SumType<VSInternalReferenceItem, LSP.Location>> referencesToReport, CancellationToken cancellationToken)
Protocol\Internal\VSInternalReferenceParams.cs (2)
13internal sealed class VSInternalReferenceParams : ReferenceParams, IPartialResultParams<SumType<VSInternalReferenceItem, Location>[]> 30public new IProgress<SumType<VSInternalReferenceItem, Location>[]>? PartialResultToken { get; set; }
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (6)
References\FindAllReferencesHandlerTests.cs (6)
353internal static async Task<LSP.VSInternalReferenceItem[]> RunFindAllReferencesAsync(TestLspServer testLspServer, LSP.Location caret, BufferedProgress<object>? progress = null) 355var results = await testLspServer.ExecuteRequestAsync<LSP.ReferenceParams, LSP.VSInternalReferenceItem[]>(LSP.Methods.TextDocumentReferencesName, 362results = [.. UnwrapProgress<LSP.VSInternalReferenceItem>(progress.Value)]; 397private static void AssertValidDefinitionProperties(LSP.VSInternalReferenceItem[] referenceItems, int definitionIndex, Glyph definitionGlyph) 399var definition = referenceItems[definitionIndex]; 421LSP.VSInternalReferenceItem[] referenceItems,