Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/snippetConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function processSnippetFolder(folderPath, outputFileName) {
// Bug Fix: change \\$ to just $. Json Stringify changes the \$ in the sublime template to \\$ so VSCode inserts \$ instead of $ when using the snippets.
fs.writeFile(outputFileName, jsonOutput.replace(/\\\\\$/g, '\$'), function (err) {
if (err) throw err;
console.log('File wrote to ' + outputFileName);
console.log('File written to ' + outputFileName);
});
console.log(count + " snippet(s) found and converted." + (errors.length > 0 ? '\n\nProblems while converting: \n' + errors.join('\n'): ''));
return count;
Expand Down Expand Up @@ -199,4 +199,4 @@ function isFile(filePath) {
}
}

exports.processSnippetFolder = processSnippetFolder;
exports.processSnippetFolder = processSnippetFolder;