File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,19 +66,19 @@ namespace ts.refactor.extractSymbol {
66
66
67
67
const infos : ApplicableRefactorInfo [ ] = [ ] ;
68
68
69
- if ( functionActions . length ) {
69
+ if ( constantActions . length ) {
70
70
infos . push ( {
71
71
name : refactorName ,
72
- description : getLocaleSpecificMessage ( Diagnostics . Extract_function ) ,
73
- actions : functionActions
72
+ description : getLocaleSpecificMessage ( Diagnostics . Extract_constant ) ,
73
+ actions : constantActions
74
74
} ) ;
75
75
}
76
76
77
- if ( constantActions . length ) {
77
+ if ( functionActions . length ) {
78
78
infos . push ( {
79
79
name : refactorName ,
80
- description : getLocaleSpecificMessage ( Diagnostics . Extract_constant ) ,
81
- actions : constantActions
80
+ description : getLocaleSpecificMessage ( Diagnostics . Extract_function ) ,
81
+ actions : functionActions
82
82
} ) ;
83
83
}
84
84
You can’t perform that action at this time.
0 commit comments