Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
phillco authored Jan 30, 2025
1 parent 07fedc4 commit a98b37b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cursorless-vscode/src/migrateSnippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async function openResultDocument(
const migratedKeys = Object.keys(result.migrated).sort();
const migratedPartiallyKeys = Object.keys(result.migratedPartially).sort();
const skipMessage =
"Snippets containing `scopeTypes` and/or `excludeDescendantScopeTypes` attributes are not supported by community snippets.";
"(Snippets containing `scopeTypes` and/or `excludeDescendantScopeTypes` attributes are not supported by community snippets.)";

const content: string[] = [
`# Snippets migrated from Cursorless`,
Expand All @@ -173,18 +173,18 @@ async function openResultDocument(
if (migratedPartiallyKeys.length > 0) {
content.push(
`## Migrated ${migratedPartiallyKeys.length} snippet files partially:`,
skipMessage,
...migratedPartiallyKeys.map(
(key) => `- ${key} -> ${result.migratedPartially[key]}`,
),
skipMessage,
);
}

if (result.skipped.length > 0) {
content.push(
`## Skipped ${result.skipped.length} snippet files:`,
skipMessage,
...result.skipped.map((key) => `- ${key}`),
skipMessage,
);
}

Expand Down

0 comments on commit a98b37b

Please sign in to comment.