-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Open initial electron window early and reuse it later
This avoids having a rather long pause from Theia start until something is visibly coming up. In my initial experiment, I observe the empty window showing up ~1.5s earlier than usual. This behavior can be controlled via the application config in the application's package.json. For instance, to turn off, use: ``` "theia": { "target": "electron", "frontend": { "config": { "applicationName": "Theia Electron Example", "electron": { "showWindowEarly": false } } } } ``` Also, we store the background color of the current color theme to be able to show the correct background color in the initial window. Contributed on behalf of STMicroelectronics. Change-Id: Ib8a6e8221c4f48605c865afc120d62adf6eef902
- Loading branch information
Showing
8 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45a0953
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a bug using “window.localStorage.getItem(DEFAULT_BACKGROUND_COLOR_STORAGE_KEY)” with electron.
About “window.localStorage.setItem”,
first, set-data will in inner-storage, and store to local-file when browser free;
When I change current theme, dark to light (or light to dark),
if "dark to light", the value of “window.localStorage.getItem('theme')” is "light" which is in inner-storage,
then close ide and reopen it,
the value of “window.localStorage.getItem('theme')” is “dark” which is not correct until all data init over,
it's seem that the localStorage-data not store to local with last change.
I don‘t know the “window.localStorage” cache-bug is for all-browser or only-electron...
45a0953
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yanquer Thank you for your message! Could you please open a new issue with steps to reproduce this bug? We'll then be happy to look into it. Thank you!