Skip to content

Commit 9a9baeb

Browse files
authored
Sort extract constant above extract function (microsoft#35580)
1 parent a78342a commit 9a9baeb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/services/refactors/extractSymbol.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)