9
9
using Microsoft . CodeAnalysis ;
10
10
using Microsoft . CodeAnalysis . ExternalAccess . Razor ;
11
11
using Microsoft . CodeAnalysis . ExternalAccess . Razor . Cohost ;
12
+ using Microsoft . CodeAnalysis . Razor . Cohost ;
12
13
using Microsoft . CodeAnalysis . Razor . Formatting ;
13
14
using Microsoft . CodeAnalysis . Razor . Logging ;
14
15
using Microsoft . CodeAnalysis . Razor . Protocol ;
@@ -29,8 +30,9 @@ internal sealed class CohostWrapWithTagEndpoint(
29
30
IRemoteServiceInvoker remoteServiceInvoker ,
30
31
IHtmlRequestInvoker requestInvoker ,
31
32
LSPDocumentManager documentManager ,
33
+ IIncompatibleProjectService incompatibleProjectService ,
32
34
ILoggerFactory loggerFactory )
33
- : AbstractRazorCohostDocumentRequestHandler < VSInternalWrapWithTagParams , VSInternalWrapWithTagResponse ? >
35
+ : AbstractCohostDocumentEndpoint < VSInternalWrapWithTagParams , VSInternalWrapWithTagResponse ? > ( incompatibleProjectService )
34
36
{
35
37
private readonly IRemoteServiceInvoker _remoteServiceInvoker = remoteServiceInvoker ;
36
38
private readonly IHtmlRequestInvoker _requestInvoker = requestInvoker ;
@@ -44,10 +46,7 @@ internal sealed class CohostWrapWithTagEndpoint(
44
46
protected override RazorTextDocumentIdentifier ? GetRazorTextDocumentIdentifier ( VSInternalWrapWithTagParams request )
45
47
=> request . TextDocument . ToRazorTextDocumentIdentifier ( ) ;
46
48
47
- protected override Task < VSInternalWrapWithTagResponse ? > HandleRequestAsync ( VSInternalWrapWithTagParams request , RazorCohostRequestContext context , CancellationToken cancellationToken )
48
- => HandleRequestAsync ( request , context . TextDocument . AssumeNotNull ( ) , cancellationToken ) ;
49
-
50
- private async Task < VSInternalWrapWithTagResponse ? > HandleRequestAsync ( VSInternalWrapWithTagParams request , TextDocument razorDocument , CancellationToken cancellationToken )
49
+ protected override async Task < VSInternalWrapWithTagResponse ? > HandleRequestAsync ( VSInternalWrapWithTagParams request , TextDocument razorDocument , CancellationToken cancellationToken )
51
50
{
52
51
// First, check if the position is valid for wrap with tag operation through the remote service
53
52
var range = request . Range . ToLinePositionSpan ( ) ;
0 commit comments