tinkerun / tinkerun-vscode

The missing way of running tinker in Visual Studio Code
https://tinke.run/vscode
MIT License
56 stars 2 forks source link

Give hand back to Tinker after running code #3

Closed d-damien closed 3 years ago

d-damien commented 3 years ago

When you run the code, Tinkerun displays the result, but does not give control back to Tinker. I understand the idea is you're supposed to modify the file, and re-run the code, but sometimes you want to write it directly in Tinker.

Use case 1 : running a long operation, you don't want to wait every time before you start writing after, using the Tinkerun results.

Use case 2 : I'd like to use Tinkerun files as init scripts for Tinker debugging sessions, e.g. the infamous use Carbon\Carbon, annoying to write every time.

Great work ; thank you !

billyct commented 3 years ago

maybe you are right.

how about something like this, when clicking the run button, two-panel appears, one panel for the result, and one for the original Tinker session?

or some button to switch result/Tinker mode?

screenshot
d-damien commented 3 years ago

I'm surprised Tinker doesn't let you do both in one session. But if that's the only option, it's fine. If I can have my init scripts loaded when starting Tinker-ing, I'm happy :)

billyct commented 3 years ago

Now you can hand it back to Tinker by just press Enter in the result panel. I uploaded the new version, 😉 try to update it in your vscode.

d-damien commented 3 years ago

Awesome, thank you :)