@@ -94,7 +94,7 @@ public async Task ShouldRouteToCorrect_Request()
94
94
textDocumentSyncHandler . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) , Arg . Any < CancellationToken > ( ) ) . Returns ( Unit . Value ) ;
95
95
96
96
var codeActionHandler = Substitute . For < ICodeActionHandler > ( ) ;
97
- codeActionHandler . GetRegistrationOptions ( ) . Returns ( new TextDocumentRegistrationOptions ( ) { DocumentSelector = DocumentSelector . ForPattern ( "**/*.cs" ) } ) ;
97
+ codeActionHandler . GetRegistrationOptions ( ) . Returns ( new CodeActionRegistrationOptions ( ) { DocumentSelector = DocumentSelector . ForPattern ( "**/*.cs" ) } ) ;
98
98
codeActionHandler
99
99
. Handle ( Arg . Any < CodeActionParams > ( ) , Arg . Any < CancellationToken > ( ) )
100
100
. Returns ( new CommandOrCodeActionContainer ( ) ) ;
@@ -126,13 +126,13 @@ public async Task ShouldRouteToCorrect_Request_WithManyHandlers()
126
126
textDocumentSyncHandler2 . Handle ( Arg . Any < DidSaveTextDocumentParams > ( ) , Arg . Any < CancellationToken > ( ) ) . Returns ( Unit . Value ) ;
127
127
128
128
var codeActionHandler = Substitute . For < ICodeActionHandler > ( ) ;
129
- codeActionHandler . GetRegistrationOptions ( ) . Returns ( new TextDocumentRegistrationOptions ( ) { DocumentSelector = DocumentSelector . ForPattern ( "**/*.cs" ) } ) ;
129
+ codeActionHandler . GetRegistrationOptions ( ) . Returns ( new CodeActionRegistrationOptions ( ) { DocumentSelector = DocumentSelector . ForPattern ( "**/*.cs" ) } ) ;
130
130
codeActionHandler
131
131
. Handle ( Arg . Any < CodeActionParams > ( ) , Arg . Any < CancellationToken > ( ) )
132
132
. Returns ( new CommandOrCodeActionContainer ( ) ) ;
133
133
134
134
var codeActionHandler2 = Substitute . For < ICodeActionHandler > ( ) ;
135
- codeActionHandler2 . GetRegistrationOptions ( ) . Returns ( new TextDocumentRegistrationOptions ( ) { DocumentSelector = DocumentSelector . ForPattern ( "**/*.cake" ) } ) ;
135
+ codeActionHandler2 . GetRegistrationOptions ( ) . Returns ( new CodeActionRegistrationOptions ( ) { DocumentSelector = DocumentSelector . ForPattern ( "**/*.cake" ) } ) ;
136
136
codeActionHandler2
137
137
. Handle ( Arg . Any < CodeActionParams > ( ) , Arg . Any < CancellationToken > ( ) )
138
138
. Returns ( new CommandOrCodeActionContainer ( ) ) ;
0 commit comments