lostintangent / codeswing

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

Suggestion: "New Swing in New Window" #97

Open OliverJAsh opened 4 months ago

OliverJAsh commented 4 months ago

Firstly, thank you for creating and sharing this awesome project. ❤️

The "New Swing…" command creates the swing inside the current editor window. This takes me by surprise every time. (I frequently use CodeSwing to create reduced test cases when I'm in the middle of working on something, so I don't want it to rearrange my current window.)

A few ideas to address this:

What do you think?

lostintangent commented 4 months ago

Hey! Yeah I could add a new command, and that might be the simplest solution? Since it wouldn't change the existing behavior.

If I added a "New Swing in New Window" command, would that work for you?

Here's how I'm thinking this command would work:

  1. It creates a new temporary directory for the swing
  2. It prompts you with the existing "new swing" flow, which allows selecting a template. And when selected, the swing is stored into the temp directory
  3. It then opens the temp directory in VS Code
OliverJAsh commented 4 months ago

That would be perfect!