4 references to TryExcerptAsync
Microsoft.CodeAnalysis.Features (2)
CodeLens\CodeLensReferencesService.cs (2)
260var referenceExcerpt = await DocumentExcerptHelper.TryExcerptAsync(document, span, ExcerptMode.SingleLine, classificationOptions, cancellationToken).ConfigureAwait(false); 261var tooltipExcerpt = await DocumentExcerptHelper.TryExcerptAsync(document, span, ExcerptMode.Tooltip, classificationOptions, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices (2)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
480var result = await DocumentExcerptHelper.TryExcerptAsync(document, sourceSpan, ExcerptMode.SingleLine, options.Value, cancellationToken).ConfigureAwait(false);
FindReferences\Entries\DocumentSpanEntry.cs (1)
189var excerpt = this.Presenter.ThreadingContext.JoinableTaskFactory.Run(() => DocumentExcerptHelper.TryExcerptAsync(document, sourceSpan, ExcerptMode.Tooltip, classificationOptions, CancellationToken.None));