theia
theia copied to clipboard
bug: secondary window cannot be reopened after closing it
Bug Description:
In the browser application, we cannot reopen the same secondary window after closing it. The only way to reopen the file is to reload the application. Note: this bug is only present on the browser app, the electron app works well.
Demo:
Steps to Reproduce:
- Open Theia browser application.
- Install the
drawio
extension. - Create a new
test.drawio
file and open the file. - Move the view to a secondary window by pressing the button.
- Close the secondary window.
- Try opening
test.drawio
, it will not open.
Additional Information
- Operating System: Windows 10
- Theia Version: 1.45
@tsmaeder
Note that the window remains open in the "SecondaryWindow" section in the "Open Editors" view. When clicking the close button in the "Open Editors" view, the file can be opened again.
@tsmaeder
Good catch, I didn't spot that.
I still think that the behavior could be improved. Having to close the secondary-window from the Open Editors
before being able to reopen the file is not very intuitive for users. Any thoughts ?
@vladarama this is definitely a bug.
@tsmaeder Just a reminder of this, it might play a role in your current work on detachable editors!?
Turns out we just never call ApplicationShell.closeWidget()
in the browser case. The call got lost in the refactoring to enable secondary windows in electron.