22 references to ExcerptMode
Microsoft.CodeAnalysis.ExternalAccess.Razor (3)
RazorDocumentExcerptServiceWrapper.cs (3)
21
public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span,
ExcerptMode
mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
25
ExcerptMode
.SingleLine => RazorExcerptMode.SingleLine,
26
ExcerptMode
.Tooltip => RazorExcerptMode.Tooltip,
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (3)
25
Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span,
ExcerptMode
mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken);
60
/// should be same document in <see cref="IDocumentExcerptService.TryExcerptAsync(Document, TextSpan,
ExcerptMode
, ClassificationOptions, CancellationToken)" />
67
/// should be same text span in <see cref="IDocumentExcerptService.TryExcerptAsync(Document, TextSpan,
ExcerptMode
, ClassificationOptions, CancellationToken)" />
Microsoft.VisualStudio.LanguageServices (11)
CodeLens\RemoteCodeLensReferencesService.cs (2)
184
var referenceExcerpt = await excerpter.TryExcerptAsync(document, span,
ExcerptMode
.SingleLine, classificationOptions, cancellationToken).ConfigureAwait(false);
185
var tooltipExcerpt = await excerpter.TryExcerptAsync(document, span,
ExcerptMode
.Tooltip, classificationOptions, cancellationToken).ConfigureAwait(false);
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
397
var result = await excerptService.TryExcerptAsync(documentSpan.Document, documentSpan.SourceSpan,
ExcerptMode
.SingleLine, options, cancellationToken).ConfigureAwait(false);
FindReferences\Entries\DocumentSpanEntry.cs (1)
232
var excerpt = Presenter.ThreadingContext.JoinableTaskFactory.Run(() => excerptService.TryExcerptAsync(document, sourceSpan,
ExcerptMode
.Tooltip, classificationOptions, CancellationToken.None));
Venus\ContainedDocument.DocumentServiceProvider.cs (7)
136
public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span,
ExcerptMode
mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
277
private static (SourceText, TextSpan) GetContentAndMappedSpan(
ExcerptMode
mode, SnapshotSpan primarySpan, SnapshotSpan contentSpan)
281
if (mode ==
ExcerptMode
.SingleLine)
286
if (mode ==
ExcerptMode
.Tooltip)
294
private static SnapshotSpan? GetContentSpanFromPrimarySpan(
ExcerptMode
mode, SnapshotSpan primarySpan)
298
if (mode ==
ExcerptMode
.SingleLine)
304
if (mode ==
ExcerptMode
.Tooltip)
Microsoft.VisualStudio.LanguageServices.UnitTests (5)
Venus\DocumentService_IntegrationTests.vb (1)
308
Public Async Function TryExcerptAsync(document As Document, span As TextSpan, mode As
ExcerptMode
, classificationOptions As ClassificationOptions, cancellationToken As CancellationToken) As Task(Of ExcerptResult?) Implements IDocumentExcerptService.TryExcerptAsync
Venus\DocumentServiceTests.vb (4)
140
Dim result = Await excerptService.TryExcerptAsync(workspace.CurrentSolution.GetDocument(subjectDocument.Id), GetNamedSpan(subjectDocument),
ExcerptMode
.SingleLine, ClassificationOptions.Default, CancellationToken.None)
179
Dim result = Await excerptService.TryExcerptAsync(workspace.CurrentSolution.GetDocument(subjectDocument.Id), GetNamedSpan(subjectDocument),
ExcerptMode
.Tooltip, ClassificationOptions.Default, CancellationToken.None)
226
Dim result = Await excerptService.TryExcerptAsync(workspace.CurrentSolution.GetDocument(subjectDocument.Id), GetNamedSpan(subjectDocument),
ExcerptMode
.Tooltip, ClassificationOptions.Default, CancellationToken.None)
279
Dim result = Await excerptService.TryExcerptAsync(workspace.CurrentSolution.GetDocument(subjectDocument.Id), GetNamedSpan(subjectDocument),
ExcerptMode
.SingleLine, ClassificationOptions.Default, CancellationToken.None)