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