17 references to ExcerptMode
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (3)
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,
Microsoft.CodeAnalysis.Workspaces (3)
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)" />
Microsoft.VisualStudio.LanguageServices (11)
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));
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)