-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix: quick input hover initialization #15064
fix: quick input hover initialization #15064
Conversation
d9953bd
to
7977c36
Compare
@sdirix I think I like the solution in |
Okay I will try this too
If we don't include it in |
Makes sure the global Monaco BaseLayerHoverDelegate is properly initialized with Monaco's HoverService. This fixes rendering issues caused by uncaught errors when opening a quick input, for example the command palette, before any Monaco editor was initialized. This scenario was easily reproducible in minimal Theia applications, not leveraging all offered Theia extensions. fixes eclipse-theia#15042
7977c36
to
e3cf158
Compare
@tsmaeder updated the fix as discussed |
Makes sure the global Monaco BaseLayerHoverDelegate is properly initialized with Monaco's HoverService. This fixes rendering issues caused by uncaught errors when opening a quick input, for example the command palette, before any Monaco editor was initialized. This scenario was easily reproducible in minimal Theia applications, not leveraging all offered Theia extensions. fixes #15042 Signed-off-by: Simon Graband <sgraband@eclipsesource.com>
What it does
Makes sure the global Monaco BaseLayerHoverDelegate is properly initialized with Monaco's HoverService.
This fixes rendering issues caused by uncaught errors when opening a quick input, for example the command palette, before any Monaco editor was initialized. This scenario was easily reproducible in minimal Theia applications, not leveraging all offered Theia extensions.
fixes #15042
How to test
all AI packages
all plugin packages
You can use this list for convenience:
Ctrl + Shift + P
Without the fix, the palette's rendering will be broken and errors thrown in the console
As an alternative reproducer you can use the Theia generator, there the problem immediately appears.
Follow-ups
This fixes the issue for the quick input. Previously I discussed with @tsmaeder to move this code tomoved tomonaco-init
. However as this change is less invasive, I put it into the quick input for now.monaco-init
Breaking changes
Attribution
Review checklist
Reminder for reviewers