@@ -2,7 +2,7 @@ use std::{fmt::Write as _, io::Write as _};
2
2
3
3
use gen_lsp_server:: ErrorCode ;
4
4
use lsp_types:: {
5
- CodeAction , CodeActionOrCommand , CodeActionResponse , CodeLens , Command , Diagnostic ,
5
+ CodeAction , CodeActionResponse , CodeLens , Command , Diagnostic ,
6
6
DiagnosticSeverity , DocumentFormattingParams , DocumentHighlight , DocumentSymbol , FoldingRange ,
7
7
FoldingRangeKind , FoldingRangeParams , Hover , HoverContents , Location , MarkupContent ,
8
8
MarkupKind , Position , PrepareRenameResponse , Range , RenameParams , SymbolInformation ,
@@ -689,7 +689,7 @@ pub fn handle_code_action(
689
689
edit : None ,
690
690
command : Some ( command) ,
691
691
} ;
692
- res. push ( CodeActionOrCommand :: CodeAction ( action) ) ;
692
+ res. push ( action. into ( ) ) ;
693
693
}
694
694
695
695
for assist in assists {
@@ -711,7 +711,7 @@ pub fn handle_code_action(
711
711
edit : None ,
712
712
command : Some ( command) ,
713
713
} ;
714
- res. push ( CodeActionOrCommand :: CodeAction ( action) ) ;
714
+ res. push ( action. into ( ) ) ;
715
715
}
716
716
717
717
Ok ( Some ( res) )
0 commit comments