samuelpordeus / vscode-elixir-test

Visual Studio Code extension to interact with elixir tests
MIT License
37 stars 36 forks source link

Handle terminal already running command / multiple terminals #65

Closed dantswain closed 1 year ago

dantswain commented 3 years ago

Hi! This extension is super handy!

This is just a small improvement suggestion - I'm not familiar with extension development so I'm not sure how difficult it would be.

Use case

I often have two terminal panes open, and one of them is often already running a command - iex, psql, etc. I'm not sure how this plugin chooses which terminal to use (first, maybe?) but if I execute any of the "run test" commands, it has a chance to try to inject the mix test ... command into my running application.

Suggested changes

samuelpordeus commented 3 years ago

I honestly don't know how difficult it would be 😅 – but the suggestion seems reasonable to me. If anyone is interested feel free to do it.

msramos commented 1 year ago

@dantswain unfortunatelly VSCode does not provide and API to detect if the terminal is running a command or not, so I'm afraid it's not possible to do this.