microsoft/vscode-generator-code

can't import Sublime snippets (.sublime-snippet)

lxz26192 opened this issue · 1 comments

image

Error: Near offset 9: unexpected opened tag snippet ~~~
<![CDATA[
=========================~~~
at fail (D:\Program Files\nodejs\node_modules\generator-code\node_modules\fast-plist\release\src\main.js:114:15)
at _parse (D:\Program Files\nodejs\node_modules\generator-code\node_modules\fast-plist\release\src\main.js:452:16)
at Module.parse (D:\Program Files\nodejs\node_modules\generator-code\node_modules\fast-plist\release\src\main.js:15:12)
at convertSublime (file:///D:/Program%20Files/nodejs/node_modules/generator-code/generators/app/generate-snippets.js:216:34)
at file:///D:/Program%20Files/nodejs/node_modules/generator-code/generators/app/generate-snippets.js:143:27
at Array.forEach ()
at convert (file:///D:/Program%20Files/nodejs/node_modules/generator-code/generators/app/generate-snippets.js:137:15)
at processSnippetFolder (file:///D:/Program%20Files/nodejs/node_modules/generator-code/generators/app/generate-snippets.js:120:17)
at file:///D:/Program%20Files/nodejs/node_modules/generator-code/generators/app/generate-snippets.js:75:31
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

my .sublime-snippet
https://github.com/zenorocha/sublime-javascript-snippets/blob/master/console-log.sublime-snippet

We currently don't support CDATA inside the snippet file.

Duplicate of microsoft/node-fast-plist#8