2 implementations of TryExcerptAsync
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorDocumentExcerptServiceWrapper.cs (1)
20public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedDocument.DocumentServiceProvider.cs (1)
135public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
6 references to TryExcerptAsync
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (2)
58/// should be same document in <see cref="IDocumentExcerptService.TryExcerptAsync(Document, TextSpan, ExcerptMode, ClassificationOptions, CancellationToken)" /> 65/// should be same text span in <see cref="IDocumentExcerptService.TryExcerptAsync(Document, TextSpan, ExcerptMode, ClassificationOptions, CancellationToken)" />
Microsoft.VisualStudio.LanguageServices (4)
CodeLens\RemoteCodeLensReferencesService.cs (2)
182var referenceExcerpt = await excerpter.TryExcerptAsync(document, span, ExcerptMode.SingleLine, classificationOptions, cancellationToken).ConfigureAwait(false); 183var tooltipExcerpt = await excerpter.TryExcerptAsync(document, span, ExcerptMode.Tooltip, classificationOptions, cancellationToken).ConfigureAwait(false);
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
482var result = await excerptService.TryExcerptAsync(document, sourceSpan, ExcerptMode.SingleLine, options.Value, cancellationToken).ConfigureAwait(false);
FindReferences\Entries\DocumentSpanEntry.cs (1)
190var excerpt = this.Presenter.ThreadingContext.JoinableTaskFactory.Run(() => excerptService.TryExcerptAsync(document, sourceSpan, ExcerptMode.Tooltip, classificationOptions, CancellationToken.None));