In my plugin I have run configurations which represent a REPL. This opens a toolwindow on the right hand side (since for a REPL a vertical orientation is preferable to a horizontal one). I control the REPL process, and I send stdout/stderr output to the REPL window too.
For these run configurations I'd like to either disable the opening of the Run toolwindow altogether, or disable the "Activate tool window" option by default for them so at least it's hidden. The standard output console is not useful since I've redirected everything to the REPL pane. I've been digging through the code but I can't see a way to achieve this. I can't prevent the console being added altogether without implementing my own ProgramRunner (which looks pretty complex and would involve copy/pasting a lot), and I can't seem to see a good point to call setActivateToolWindowBeforeRun() on a RunnerAndConfigurationSettings anywhere either - ideally I would do that in the template run config somehow.
Is there a good option for achieving this?