shalimski / swapdiff

swapdiff Extension for Visual Studio Code
MIT License
10 stars 1 forks source link

Can't swap when the output pane is also open #3

Closed jokrefta closed 1 year ago

jokrefta commented 1 year ago

It seems that the Output, Problems, and Debug Console panels at the bottom of the screen are considered "editors" by VS Code. So when you have one of them open, it gets counted in vscode.window.visibleTextEditors. This causes the error message "More than 2 visible files, can`t swap it :(" and prevents me from swapping a diff while I have one of those panels open.

Edit: If I disable all other extensions besides swapdiff, it works in the Debug Console and the Problems panel but still not in the Output panel.

Seemingly related: https://github.com/microsoft/vscode/issues/45188 https://github.com/Microsoft/vscode/issues/58869 https://stackoverflow.com/questions/60235689/how-to-distinguish-output-panel-from-other-activetexteditor

malerba423 commented 1 year ago

Just commenting to add another bit in the bucket since I don't see a way to bump / upvote issues