language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Buttons to run common commands

Open janpio opened this issue 5 years ago • 7 comments

There could be a UI panel that has button you can click to automatically run stuff you need frequently in the terminal:

  • npx prisma generate
  • npx prisma introspect
  • npx prisma -v
  • ...

janpio avatar May 28 '20 12:05 janpio

This could be done via Status Bar Items: https://code.visualstudio.com/api/extension-capabilities/extending-workbench#status-bar-item

carmenberndt avatar May 29 '20 15:05 carmenberndt

Something like this?

buttons

carmenberndt avatar Jun 03 '20 16:06 carmenberndt

This is pretty much what I asked for in the issue indeed 🐰

I love it, but I do not think this would be the right thing for our users. The output is to important to be able to put it in a toast.

I do not have a good solution for that though :/

janpio avatar Jun 03 '20 18:06 janpio

So it would be better to have the output in the current active terminal or in a new terminal then?

carmenberndt avatar Jun 03 '20 19:06 carmenberndt

In that case, the active terminal would show and execute the command on click on the buttons. If there is no active terminal, a new one is created and the command is executed there.

carmenberndt avatar Jun 03 '20 19:06 carmenberndt

buttonsUsingTerminal

carmenberndt avatar Jun 03 '20 19:06 carmenberndt

Related internal discussion: https://prisma-company.slack.com/archives/CKCQQGXJM/p1647958285345819

janpio avatar Mar 22 '22 14:03 janpio