Skip to content

Commit

Permalink
Fix: Snippet Builder Minor Enhancements[Esri#60]
Browse files Browse the repository at this point in the history
  • Loading branch information
BochaberiDaisy committed Dec 5, 2024
1 parent 576855c commit 521cebe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builder/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ let snippet = {
})
.join("\n");

return `[${x}]`;
return `[
${x}
]`;
},
toString: () => {
return `"${snippet.name}": {
Expand Down Expand Up @@ -60,6 +62,7 @@ function renderSnippet() {
const body = encodeURIComponent(`
**Prefix**: ${snippet.prefix}
**Description**: ${snippet.desc}
**Scope**: ${Array.isArray(snippet.scope) ? snippet.scope.join(', ') : ''}
**Snippet**:
\`\`\`js
${snippet.body}
Expand Down

0 comments on commit 521cebe

Please sign in to comment.