Skip to content

Commit 09f27b7

Browse files
Reorder
1 parent 274bf11 commit 09f27b7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/cursorless-vscode/src/migrateSnippets.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,21 +183,21 @@ async function openResultDocument(
183183
"",
184184
];
185185

186-
if (migratedPartiallyKeys.length > 0) {
186+
if (result.skipped.length > 0) {
187187
content.push(
188-
`## Migrated ${migratedPartiallyKeys.length} snippet files partially:`,
189-
...migratedPartiallyKeys.map(
190-
(key) => `- ${key} -> ${result.migratedPartially[key]}`,
191-
),
188+
`## Skipped ${result.skipped.length} snippet files:`,
189+
...result.skipped.map((key) => `- ${key}`),
192190
skipMessage,
193191
"",
194192
);
195193
}
196194

197-
if (result.skipped.length > 0) {
195+
if (migratedPartiallyKeys.length > 0) {
198196
content.push(
199-
`## Skipped ${result.skipped.length} snippet files:`,
200-
...result.skipped.map((key) => `- ${key}`),
197+
`## Migrated ${migratedPartiallyKeys.length} snippet files partially:`,
198+
...migratedPartiallyKeys.map(
199+
(key) => `- ${key} -> ${result.migratedPartially[key]}`,
200+
),
201201
skipMessage,
202202
"",
203203
);

0 commit comments

Comments
 (0)