From 471b57d2e53797666cbbae86eb8d1c0d970e8047 Mon Sep 17 00:00:00 2001 From: tmat Date: Wed, 9 Feb 2022 11:32:36 -0800 Subject: [PATCH] Fix --- .../ExternalAccess/Razor/RazorDocumentExcerptServiceWrapper.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Tools/ExternalAccess/Razor/RazorDocumentExcerptServiceWrapper.cs b/src/Tools/ExternalAccess/Razor/RazorDocumentExcerptServiceWrapper.cs index ef0a365200b02..717e8cb681b7c 100644 --- a/src/Tools/ExternalAccess/Razor/RazorDocumentExcerptServiceWrapper.cs +++ b/src/Tools/ExternalAccess/Razor/RazorDocumentExcerptServiceWrapper.cs @@ -39,8 +39,7 @@ public RazorDocumentExcerptServiceWrapper(IRazorDocumentExcerptServiceImplementa RazorExcerptResult? result; if (_impl != null) { - var options = ClassificationOptions.From(document.Project); - result = await _impl.TryExcerptAsync(document, span, razorMode, new RazorClassificationOptionsWrapper(options), cancellationToken).ConfigureAwait(false); + result = await _impl.TryExcerptAsync(document, span, razorMode, new RazorClassificationOptionsWrapper(classificationOptions), cancellationToken).ConfigureAwait(false); } else {