Skip to content

Commit c4d87f1

Browse files
committed
fix: Prevent duplicating file
1 parent 6de6a92 commit c4d87f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-extensions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ async function fetchExtensions () {
556556
const snippetUrl = resolve(snippetPath)
557557
const snippetFileContent = JSON5.parse((await download(snippetUrl))!)
558558

559-
const filePath = `${extension.name}-${snippetConf.language}.json`
559+
const filePath = `${extension.name}-${path.basename(snippetPath, '.json')}.json`
560560
await fs.writeFile(path.resolve(snippetsPath, filePath), JSON.stringify(snippetFileContent, null, 2))
561561
snippetPaths = {
562562
...snippetPaths,

0 commit comments

Comments
 (0)