Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
AlbyIanna merged 1 commit into main from fix-themes-registration
Jul 29, 2022

Conversation

@AlbyIanna
Copy link
Contributor

@AlbyIanna AlbyIanna commented Jul 26, 2022

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)

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 reacted with thumbs up emoji

@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
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
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

Reviewers

@davegarthsimpson davegarthsimpson davegarthsimpson approved these changes

@per1234 per1234 Awaiting requested review from per1234

+1 more reviewer

@kittaakos kittaakos kittaakos approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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

AltStyle によって変換されたページ (->オリジナル) /