-
Notifications
You must be signed in to change notification settings - Fork 294
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
Development
: Migrate the MonacoEditorModule to standalone components
#9407
Development
: Migrate the MonacoEditorModule to standalone components
#9407
Conversation
This reverts commit da4ea63.
comp.editor = TestBed.createComponent(MonacoEditorComponent).componentInstance; | ||
expect(comp.editor).toBeDefined(); |
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.
If this looks odd to you: comp.editor
is actually a get
/set
pair. We will remove this when refactoring the build plan components
} | ||
|
||
applyTheme(artemisTheme: Theme): void { | ||
monaco.editor.setTheme(artemisTheme === Theme.LIGHT ? 'vs' : 'vs-dark'); |
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.
vs-light
(from the other components) was actually wrong. The light theme (which is also the fallback for incorrect themes 😅) is vs
WalkthroughThe changes in this pull request focus on significant updates to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Tested on TS6, works as expected and editor highlightings also transfer correctly between dark and light mode
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.
Re-approve
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.
Tested on TS6, lgtm!
Checklist
General
Client
Changes affecting Programming Exercises
Motivation and Context
According to our new client coding guidelines, we want to move away from modules and
@Input
/@Output
. The Monaco Editor still uses a module (for registering its custom languages) and non-signal based inputs and outputs.Description
MonacoEditorModule
standalone
and implement theOnPush
change detection strategy.MonacoEditorService
that replaces the module bySteps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Test Coverage
Client
Screenshots
No UI changes
Summary by CodeRabbit
Summary by CodeRabbit
New Features
MonacoDiffEditorComponent
to function independently with improved reactivity.Bug Fixes
Tests
MonacoDiffEditorComponent
with updated assertions and property handling.