As IntelliJ + Windows user, I'm running some applications by starting some "Configurations".
The "Tool windows"/"Run" live show my aplication logs, and I've got left panel with "pause" or "stop" buttons. The stop button send a SIGKILL to the application thread.
I would like a new button to send a SIGINT (CTRL + C equivalent) to my application.
I already saw lots of issues about "sending SIGINT on Windows environment" and it seems that it's not an easy task.
I also saw a 3 years old IntelliJ issue (already OPEN) about that point CPP-3067
After some search, I found this project called windows-kill that fit my need: I can take the application pid, and use this project binary to send a SIGINT on windows environment.
windows-kill -SIGINT 1234
My queston is:
- how to add a new button on "Tool windows"/"Run" ? and is it possible to inject current thread pid for this new command ?
If it's not possible, I would like to know how to start to develop a new IntelliJ plugin: for example a new "ToolWindows" called "TaskManager" that
list all thread name+pid started by IntelliJ configurations,
allow user to define button+command for a given pid.
Maybe there is some open-source plugin that already doing that?