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 {
6666
6767 const infos : ApplicableRefactorInfo [ ] = [ ] ;
6868
69- if ( functionActions . length ) {
69+ if ( constantActions . length ) {
7070 infos . push ( {
7171 name : refactorName ,
72- description : getLocaleSpecificMessage ( Diagnostics . Extract_function ) ,
73- actions : functionActions
72+ description : getLocaleSpecificMessage ( Diagnostics . Extract_constant ) ,
73+ actions : constantActions
7474 } ) ;
7575 }
7676
77- if ( constantActions . length ) {
77+ if ( functionActions . length ) {
7878 infos . push ( {
7979 name : refactorName ,
80- description : getLocaleSpecificMessage ( Diagnostics . Extract_constant ) ,
81- actions : constantActions
80+ description : getLocaleSpecificMessage ( Diagnostics . Extract_function ) ,
81+ actions : functionActions
8282 } ) ;
8383 }
8484
You can’t perform that action at this time.
0 commit comments