22 references to ExcerptMode
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (6)
RazorDocumentExcerptServiceWrapper.cs (3)
20public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken) 24ExcerptMode.SingleLine => RazorExcerptMode.SingleLine, 25ExcerptMode.Tooltip => RazorExcerptMode.Tooltip,
RazorSourceGeneratedDocumentExcerptServiceWrapper.cs (3)
30public async Task<ExcerptResult?> TryExcerptAsync(SourceGeneratedDocument document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken) 39ExcerptMode.SingleLine => RazorExcerptMode.SingleLine, 40ExcerptMode.Tooltip => RazorExcerptMode.Tooltip,
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.CodeAnalysis.Workspaces (5)
Workspace\Host\DocumentService\DocumentExcerptHelper.cs (1)
26public static Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (3)
23Task<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)" />
Workspace\Host\DocumentService\ISourceGeneratedDocumentExcerptService.cs (1)
16Task<ExcerptResult?> TryExcerptAsync(SourceGeneratedDocument document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken);
Microsoft.VisualStudio.LanguageServices (9)
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));
Venus\ContainedDocument.DocumentServiceProvider.cs (7)
135public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken) 276private static (SourceText, TextSpan) GetContentAndMappedSpan(ExcerptMode mode, SnapshotSpan primarySpan, SnapshotSpan contentSpan) 280if (mode == ExcerptMode.SingleLine) 285if (mode == ExcerptMode.Tooltip) 293private static SnapshotSpan? GetContentSpanFromPrimarySpan(ExcerptMode mode, SnapshotSpan primarySpan) 297if (mode == ExcerptMode.SingleLine) 303if (mode == ExcerptMode.Tooltip)