[Feature Request] Getting the error message in a pop out instead of displaying inside the editor #3691
Unanswered
Ananya-Gupta24
asked this question in
Q&A
Replies: 1 comment
-
Hey Ananya! There is no pop-up mechanism that I know of that could help you here out of the box. You could directly use decorations instead of diagnostics. Then you are in control of rendering the squiggles. This could be used as a base for your own pop-up when the user hovers/clicks on these error decorations. I think this approach is easier than using diagnostics + changing the way errors are presented in the editor widget. Related: #2537 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Description
When I run this Hello World! code sample (https://microsoft.github.io/monaco-editor/playground.html#creating-the-editor-hello-world)
and change "function" to say "functionn", I get a suggestion box with a "View the Problem" link. When I click it, it renders the error inside a box within the editor like so-
Is it possible to render the error in a popout, instead of inside the editor (for scenarios where the editor size is small)?
Beta Was this translation helpful? Give feedback.
All reactions