Skip to content

Commit 274bf11

Browse files
Reorder migration results
1 parent 3b8f282 commit 274bf11

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/cursorless-vscode/src/migrateSnippets.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ async function openResultDocument(
181181
`From: ${sourceDirectory}`,
182182
`To: ${targetDirectory}`,
183183
"",
184-
`## Migrated ${migratedKeys.length} snippet files:`,
185-
...migratedKeys.map((key) => `- ${key} -> ${result.migrated[key]}`),
186-
"",
187184
];
188185

189186
if (migratedPartiallyKeys.length > 0) {
@@ -193,6 +190,7 @@ async function openResultDocument(
193190
(key) => `- ${key} -> ${result.migratedPartially[key]}`,
194191
),
195192
skipMessage,
193+
"",
196194
);
197195
}
198196

@@ -201,9 +199,16 @@ async function openResultDocument(
201199
`## Skipped ${result.skipped.length} snippet files:`,
202200
...result.skipped.map((key) => `- ${key}`),
203201
skipMessage,
202+
"",
204203
);
205204
}
206205

206+
content.push(
207+
`## Migrated ${migratedKeys.length} snippet files:`,
208+
...migratedKeys.map((key) => `- ${key} -> ${result.migrated[key]}`),
209+
"",
210+
);
211+
207212
const textDocument = await vscode.workspace.openTextDocument({
208213
content: content.join("\n"),
209214
language: "markdown",

0 commit comments

Comments
 (0)