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 46 forks source link

Suggestion: "New Swing in New Window" #97

Open OliverJAsh opened 1 month ago

OliverJAsh commented 1 month 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 1 month 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 1 month ago

That would be perfect!