2 instantiations of DocumentHighlight
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Highlights\DocumentHighlightHandler.cs (2)
83return keywordSpans.SelectAsArray(highlight => new DocumentHighlight 106return highlightsForDocument.HighlightSpans.SelectAsArray(h => new DocumentHighlight
9 references to DocumentHighlight
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Handler\Highlights\DocumentHighlightHandler.cs (6)
25internal class DocumentHighlightsHandler : ILspServiceDocumentRequestHandler<TextDocumentPositionParams, DocumentHighlight[]?> 43public Task<DocumentHighlight[]?> HandleRequestAsync(TextDocumentPositionParams request, RequestContext context, CancellationToken cancellationToken) 47return SpecializedTasks.Null<DocumentHighlight[]>(); 53internal static async Task<DocumentHighlight[]?> GetHighlightsAsync(IGlobalOptionService globalOptions, IHighlightingService highlightingService, Document document, LinePosition linePosition, CancellationToken cancellationToken) 76private static async Task<ImmutableArray<DocumentHighlight>> GetKeywordHighlightsAsync(IHighlightingService highlightingService, Document document, SourceText text, int position, CancellationToken cancellationToken) 90private static async Task<ImmutableArray<DocumentHighlight>> GetReferenceHighlightsAsync(IGlobalOptionService globalOptions, Document document, SourceText text, int position, CancellationToken cancellationToken)
Protocol\DocumentHighlightParams.cs (2)
16internal class DocumentHighlightParams : TextDocumentPositionParams, IWorkDoneProgressParams, IPartialResultParams<DocumentHighlight[]> 21public IProgress<DocumentHighlight[]>? PartialResultToken { get; set; }
Protocol\Methods.Navigation.cs (1)
245public static readonly LspRequest<DocumentHighlightParams, DocumentHighlight[]?> TextDocumentDocumentHighlight = new(TextDocumentDocumentHighlightName);