From 521cebe3f6966841e0e19781e10ec65ab223362f Mon Sep 17 00:00:00 2001 From: BochaberiDaisy Date: Thu, 5 Dec 2024 09:23:15 +0300 Subject: [PATCH] Fix: Snippet Builder Minor Enhancements[#60] --- builder/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builder/main.js b/builder/main.js index 9ce0b16..e3471ff 100644 --- a/builder/main.js +++ b/builder/main.js @@ -20,7 +20,9 @@ let snippet = { }) .join("\n"); - return `[${x}]`; + return `[ + ${x} + ]`; }, toString: () => { return `"${snippet.name}": { @@ -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}