Skip to content

Commit 56d7009

Browse files
committed
Simplify
1 parent b2cbdc2 commit 56d7009

File tree

2 files changed

+2
-33
lines changed

2 files changed

+2
-33
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/SemanticTokens/CohostSemanticTokensInitializeService.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/SemanticTokens/CohostSemanticTokensRangeEndpoint.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ internal sealed class CohostSemanticTokensRangeEndpoint(
4949
// Every time they get a request they queue up a refresh, which will check the project checksums, and if there
5050
// hasn't been any changes, will no-op. We call into that same logic here to ensure everything is up to date.
5151
// See: https://github.com/dotnet/roslyn/blob/bb57f4643bb3d52eb7626f9863da177d9e219f1e/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs#L48-L52
52-
await CodeAnalysis.ExternalAccess.Razor.Cohost.Handlers.SemanticTokensRange.TryEnqueueRefreshComputationAsync(context, razorDocument.Project, cancellationToken).ConfigureAwait(false);
52+
var semanticTokensWrapperService = context.GetRequiredService<IRazorSemanticTokensRefreshQueue>();
53+
await semanticTokensWrapperService.TryEnqueueRefreshComputationAsync(razorDocument.Project, cancellationToken).ConfigureAwait(false);
5354
}
5455

5556
return result;

0 commit comments

Comments
 (0)