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