@@ -19,15 +19,14 @@ namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;
19
19
#pragma warning disable RS0030 // Do not use banned APIs
20
20
[ Shared ]
21
21
[ CohostEndpoint ( LanguageServerConstants . RazorWrapWithTagEndpoint ) ]
22
- [ Export ( typeof ( IDynamicRegistrationProvider ) ) ]
23
22
[ ExportCohostStatelessLspService ( typeof ( CohostWrapWithTagEndpoint ) ) ]
24
23
[ method: ImportingConstructor ]
25
24
#pragma warning restore RS0030 // Do not use banned APIs
26
25
internal sealed class CohostWrapWithTagEndpoint (
27
26
IRemoteServiceInvoker remoteServiceInvoker ,
28
27
IFilePathService filePathService ,
29
28
IHtmlRequestInvoker requestInvoker )
30
- : AbstractRazorCohostDocumentRequestHandler < VSInternalWrapWithTagParams , VSInternalWrapWithTagResponse ? > , IDynamicRegistrationProvider
29
+ : AbstractRazorCohostDocumentRequestHandler < VSInternalWrapWithTagParams , VSInternalWrapWithTagResponse ? >
31
30
{
32
31
private readonly IRemoteServiceInvoker _remoteServiceInvoker = remoteServiceInvoker ;
33
32
private readonly IFilePathService _filePathService = filePathService ;
@@ -37,20 +36,6 @@ internal sealed class CohostWrapWithTagEndpoint(
37
36
38
37
protected override bool RequiresLSPSolution => true ;
39
38
40
- public ImmutableArray < Registration > GetRegistrations ( VSInternalClientCapabilities clientCapabilities , RazorCohostRequestContext requestContext )
41
- {
42
- if ( clientCapabilities . SupportsVisualStudioExtensions )
43
- {
44
- return [ new Registration
45
- {
46
- Method = LanguageServerConstants . RazorWrapWithTagEndpoint ,
47
- RegisterOptions = new TextDocumentRegistrationOptions ( )
48
- } ] ;
49
- }
50
-
51
- return [ ] ;
52
- }
53
-
54
39
protected override RazorTextDocumentIdentifier ? GetRazorTextDocumentIdentifier ( VSInternalWrapWithTagParams request )
55
40
=> request . TextDocument . ToRazorTextDocumentIdentifier ( ) ;
56
41
0 commit comments