1 instantiation of VSInternalReferenceItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\References\FindUsagesLSPContext.cs (1)
219var 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( 70IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> progress,
Handler\References\FindUsagesLSPContext.cs (9)
33private readonly IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> _progress; 55private readonly Dictionary<int, SumType<VSInternalReferenceItem, LSP.Location>> _definitionsWithoutReference = []; 72private readonly AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.Location>> _workQueue; 78IProgress<SumType<VSInternalReferenceItem, LSP.Location>[]> progress, 97_workQueue = new AsyncBatchingWorkQueue<SumType<VSInternalReferenceItem, LSP.Location>>( 182private async Task<SumType<VSInternalReferenceItem, LSP.Location>?> GenerateVSReferenceItemAsync( 206private static SumType<VSInternalReferenceItem, LSP.Location>? CreateVsReference( 219var result = new VSInternalReferenceItem 375private 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)
428internal static async Task<LSP.VSInternalReferenceItem[]> RunFindAllReferencesAsync(TestLspServer testLspServer, LSP.Location caret, BufferedProgress<object>? progress = null, bool includeDeclaration = true) 430var results = await testLspServer.ExecuteRequestAsync<LSP.ReferenceParams, LSP.VSInternalReferenceItem[]>(LSP.Methods.TextDocumentReferencesName, 437results = [.. UnwrapProgress<LSP.VSInternalReferenceItem>(progress.Value)]; 472private static void AssertValidDefinitionProperties(LSP.VSInternalReferenceItem[] referenceItems, int definitionIndex, Glyph definitionGlyph) 474var definition = referenceItems[definitionIndex]; 496LSP.VSInternalReferenceItem[] referenceItems,