Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Feb 11, 2022
1 parent 7604b7f commit 788c5ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ public sealed override ValueTask OnDefinitionFoundAsync(DefinitionItem definitio
CancellationToken cancellationToken)
{
var document = documentSpan.Document;
var options = GlobalOptions.GetClassificationOptions(document.Project.Language);
var options = await GetOptionsAsync(document.Project.Language, cancellationToken).ConfigureAwait(false);
var sourceText = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
var (excerptResult, lineText) = await ExcerptAsync(sourceText, documentSpan, options, cancellationToken).ConfigureAwait(false);
var (excerptResult, lineText) = await ExcerptAsync(sourceText, documentSpan, options.ClassificationOptions, cancellationToken).ConfigureAwait(false);

var mappedDocumentSpan = await AbstractDocumentSpanEntry.TryMapAndGetFirstAsync(documentSpan, sourceText, cancellationToken).ConfigureAwait(false);
if (mappedDocumentSpan == null)
Expand Down

0 comments on commit 788c5ac

Please sign in to comment.