Why not to remove mermaid.tmLanguage.json file at all and generate it when installing dependencies?
It allows to have the actual .json file with the latest changes in .yaml (what if something pushed without updating .json?).
User just can run npm install && vsce package and be sure that everything i up-to-date.
Signed-off-by: Vitaliy Gulyy vgulyy@redhat.com
Why not to remove
mermaid.tmLanguage.json
file at all and generate it when installing dependencies?It allows to have the actual .json file with the latest changes in .yaml (what if something pushed without updating .json?). User just can run
npm install && vsce package
and be sure that everything i up-to-date.I just worked on building this extension and on Mermaid Markdown preview and noticed ,that the second one has a dedicated command to be launched when installing dependencies https://github.com/mjbvz/vscode-markdown-mermaid/blob/master/package.json#L51