Skip to content

Commit 0d0981b

Browse files
rename
1 parent f738b64 commit 0d0981b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/cursorless-vscode/src/migrateSnippets.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async function openResultDocument(
159159
const skipMessage =
160160
"Snippets containing `scopeTypes` and/or `excludeDescendantScopeTypes` attributes are not supported by community snippets.";
161161

162-
const contentParts: string[] = [
162+
const content: string[] = [
163163
`# Snippets migrated from Cursorless`,
164164
"",
165165
`From: ${sourceDirectory}`,
@@ -171,7 +171,7 @@ async function openResultDocument(
171171
];
172172

173173
if (migratedPartiallyKeys.length > 0) {
174-
contentParts.push(
174+
content.push(
175175
`## Migrated ${migratedPartiallyKeys.length} snippet files partially`,
176176
skipMessage,
177177
...migratedPartiallyKeys.map(
@@ -181,15 +181,15 @@ async function openResultDocument(
181181
}
182182

183183
if (result.skipped.length > 0) {
184-
contentParts.push(
184+
content.push(
185185
`## Skipped ${result.skipped.length} snippet files`,
186186
skipMessage,
187187
...result.skipped.map((key) => `- ${key}`),
188188
);
189189
}
190190

191191
const textDocument = await vscode.workspace.openTextDocument({
192-
content: contentParts.join("\n"),
192+
content: content.join("\n"),
193193
language: "markdown",
194194
});
195195
await vscode.window.showTextDocument(textDocument);

0 commit comments

Comments
 (0)