lostintangent / codeswing

VS Code extension for building web applications ("swings") using a interactive and editor-integrated coding environment
https://aka.ms/codeswing
MIT License
977 stars 45 forks source link

Creating new swing from template adds #27

Closed ryandejaegher closed 3 years ago

ryandejaegher commented 3 years ago

I've run into an issue while creating new swings from templates. If I choose one of my existing templates for the new code swing, it will create another template inside the code-swing-template menu instead of adding it to the code-swing menu.

Is this the correct behaviour. Is there a setting I should change in the codeswing.json file?

PixelSnap 2021-02-05 at 08 26 33@2x

image

lostintangent commented 3 years ago

Hey! This is a good find. I can see what the problem is, and I’ll try to get to this tomorrow 👍 In the meantime, you can workaround this by deleting the “template” property in the codeswing.json file. That’s what determines whether a swing is categorized as a template or not, and so I just need to clear that property automatically when creating a swing from a template.

ryandejaegher commented 3 years ago

Hey @lostintangent awesome! Btw fricken love CodeSwing. It's been a huge boost in my workflow. Keep it up!

lostintangent commented 3 years ago

This has been fixed and will be released in an update this afternoon 👍