Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "secondary window" support for Electron #12481

Merged

Conversation

tsmaeder
Copy link
Contributor

@tsmaeder tsmaeder commented May 3, 2023

What it does

Fixes #11642

The main change is to prevent the secondary window from closing until the extracted widget is removed from the window. This includes waiting until any close handling (including dialogs) are finished.

To enable this properly, dialog support has been extended to work with secondary windows, including support for the StylingService in secondary windows.

Contributed on behalf of STMicroelectronics

How to test

The test scenarios from #11048 apply, but run them in electron

Review checklist

Reminder for reviewers

@tsmaeder tsmaeder force-pushed the 11642_electron_secondary_win branch from b13d1d0 to f49a489 Compare May 3, 2023 14:48
@tsmaeder tsmaeder changed the title Implements "secondary window" support for Electron Implement "secondary window" support for Electron May 3, 2023
@vince-fugnitto vince-fugnitto added electron issues related to the electron target secondary-window issues related to multi or secondary window support labels May 3, 2023
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite good to me. I have some comments on the code, but the functionality appears to work fine 👍

packages/core/src/browser/styling-service.ts Outdated Show resolved Hide resolved
@tsmaeder tsmaeder force-pushed the 11642_electron_secondary_win branch from 18d251d to 6652d22 Compare May 24, 2023 10:03
@tsmaeder tsmaeder requested a review from msujew June 1, 2023 13:39
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

I can confirm that the second window works as expected for Electron (Windows).

Fixes eclipse-theia#11642

The main change is to prevent the secondary window from closing until
the extracted widget is removed from the window. This includes waiting
until any close handling (including dialogs) are finished.

To enable this properly, dialog support has been extended to work with
secondary windows, including support for the StylingService in secondary
windows.

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <[email protected]>
Signed-off-by: Thomas Mäder <[email protected]>
@tsmaeder tsmaeder force-pushed the 11642_electron_secondary_win branch from 6652d22 to 8f9acf5 Compare June 2, 2023 07:06
@tsmaeder tsmaeder merged commit 7c47bee into eclipse-theia:master Jun 2, 2023
@vince-fugnitto vince-fugnitto added this to the 1.39.0 milestone Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron issues related to the electron target secondary-window issues related to multi or secondary window support
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

secondary-window: add electron support
3 participants