Skip to content

Register custom themes after the monaco theme init #1257

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

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

AlbyIanna
Copy link
Contributor

Motivation

If the Arduino custom theme registration happens before the restoration of the existing monaco themes, then any custom theme changes will be ignored.

Change description

We need to add a patch introduces a static deferred promise in the monaco-theming service that will be resolved when the restoration is ready.

After upgrading to Theia 1.27.0, this patch should be superflous.

Other information

The credit for this solution goes to @kittaakos

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos
Copy link
Contributor

Please update from the main. Thank you!

The changes should contain the app config provider customization. See here. The content of the electron-app/patch/frontend/index.js and electron/build/patch/frontend/index.js modules must be the same.

@AlbyIanna AlbyIanna force-pushed the fix-themes-registration branch from 97e1b1f to 0d84164 Compare July 27, 2022 14:55
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

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

The patched index.js modules are not identical.

@AlbyIanna AlbyIanna force-pushed the fix-themes-registration branch from 0d84164 to f448065 Compare July 29, 2022 10:47
@AlbyIanna AlbyIanna force-pushed the fix-themes-registration branch from f448065 to 86c5fb1 Compare July 29, 2022 11:15
@AlbyIanna AlbyIanna requested a review from kittaakos July 29, 2022 11:15
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

@davegarthsimpson davegarthsimpson left a comment

Choose a reason for hiding this comment

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

LGTM

@AlbyIanna AlbyIanna merged commit 59b8a2d into main Jul 29, 2022
@AlbyIanna AlbyIanna deleted the fix-themes-registration branch July 29, 2022 13:09
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: theme Related to GUI theming topic: theia Related to the Theia IDE framework labels Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: theia Related to the Theia IDE framework topic: theme Related to GUI theming type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to see the protocol of the connected board with the dark theme
4 participants