@@ -402,9 +402,9 @@ impl<'ast> ast::visit::Visit<'ast> for LetAssertToCase<'_> {
402
402
let uri = & self . params . text_document . uri ;
403
403
404
404
CodeActionBuilder :: new ( "Convert to case" )
405
- . kind ( CodeActionKind :: REFACTOR )
405
+ . kind ( CodeActionKind :: REFACTOR_REWRITE )
406
406
. changes ( uri. clone ( ) , vec ! [ TextEdit { range, new_text } ] )
407
- . preferred ( true )
407
+ . preferred ( false )
408
408
. push_to ( & mut self . actions ) ;
409
409
}
410
410
}
@@ -763,9 +763,9 @@ impl<'a> FillInMissingLabelledArgs<'a> {
763
763
764
764
let mut action = Vec :: with_capacity ( 1 ) ;
765
765
CodeActionBuilder :: new ( "Fill labels" )
766
- . kind ( CodeActionKind :: REFACTOR )
766
+ . kind ( CodeActionKind :: QUICKFIX )
767
767
. changes ( self . params . text_document . uri . clone ( ) , self . edits . edits )
768
- . preferred ( false )
768
+ . preferred ( true )
769
769
. push_to ( & mut action) ;
770
770
return action;
771
771
}
@@ -1228,7 +1228,7 @@ impl<'a> AddAnnotations<'a> {
1228
1228
CodeActionBuilder :: new ( title)
1229
1229
. kind ( CodeActionKind :: REFACTOR )
1230
1230
. changes ( uri. clone ( ) , self . edits . edits )
1231
- . preferred ( true )
1231
+ . preferred ( false )
1232
1232
. push_to ( actions) ;
1233
1233
}
1234
1234
}
@@ -2662,7 +2662,7 @@ impl<'a> ExtractVariable<'a> {
2662
2662
2663
2663
let mut action = Vec :: with_capacity ( 1 ) ;
2664
2664
CodeActionBuilder :: new ( "Extract variable" )
2665
- . kind ( CodeActionKind :: REFACTOR_REWRITE )
2665
+ . kind ( CodeActionKind :: REFACTOR_EXTRACT )
2666
2666
. changes ( self . params . text_document . uri . clone ( ) , self . edits . edits )
2667
2667
. preferred ( false )
2668
2668
. push_to ( & mut action) ;
0 commit comments