17 references to ExcerptMode
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (3)
RazorDocumentExcerptServiceWrapper.cs (3)
20
public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span,
ExcerptMode
mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
24
ExcerptMode
.SingleLine => RazorExcerptMode.SingleLine,
25
ExcerptMode
.Tooltip => RazorExcerptMode.Tooltip,
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (3)
23
Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span,
ExcerptMode
mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken);
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 (11)
CodeLens\RemoteCodeLensReferencesService.cs (2)
182
var referenceExcerpt = await excerpter.TryExcerptAsync(document, span,
ExcerptMode
.SingleLine, classificationOptions, cancellationToken).ConfigureAwait(false);
183
var tooltipExcerpt = await excerpter.TryExcerptAsync(document, span,
ExcerptMode
.Tooltip, classificationOptions, cancellationToken).ConfigureAwait(false);
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
482
var result = await excerptService.TryExcerptAsync(document, sourceSpan,
ExcerptMode
.SingleLine, options.Value, cancellationToken).ConfigureAwait(false);
FindReferences\Entries\DocumentSpanEntry.cs (1)
190
var excerpt = this.Presenter.ThreadingContext.JoinableTaskFactory.Run(() => excerptService.TryExcerptAsync(document, sourceSpan,
ExcerptMode
.Tooltip, classificationOptions, CancellationToken.None));
Venus\ContainedDocument.DocumentServiceProvider.cs (7)
135
public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span,
ExcerptMode
mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
276
private static (SourceText, TextSpan) GetContentAndMappedSpan(
ExcerptMode
mode, SnapshotSpan primarySpan, SnapshotSpan contentSpan)
280
if (mode ==
ExcerptMode
.SingleLine)
285
if (mode ==
ExcerptMode
.Tooltip)
293
private static SnapshotSpan? GetContentSpanFromPrimarySpan(
ExcerptMode
mode, SnapshotSpan primarySpan)
297
if (mode ==
ExcerptMode
.SingleLine)
303
if (mode ==
ExcerptMode
.Tooltip)