recca0120 / vscode-phpunit

The VS Code Test Explorer extension for PHPUnit
MIT License
130 stars 44 forks source link

Don't change focus to output channel after test execution #200

Closed ThatsJustCheesy closed 1 week ago

ThatsJustCheesy commented 1 week ago

Hi, this extension is really useful, thanks.

After a test run finishes, the extension currently switches focus to the test output by passing false here:

https://github.com/recca0120/vscode-phpunit/blob/3117e73f746a87f1793bb75a0e8813cf94a68609/src/Observers/OutputChannelObserver.ts#L266

It would be useful to either 1) hardcode this to true, or 2) make this configurable. As it stands, whenever a long-running test finishes, it often switches focus while I'm typing something, which is disruptive.

(I've also tried to set "Show After Execution" to "never", but it didn't seem to work...)