-
Notifications
You must be signed in to change notification settings - Fork 3.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
Inline Results Widget #83
Comments
The editor has the view zone API: |
I'd be interested in this too. I can't see how It's not clear if ContentWidgets could cover this use case either. My use case: implementing inline error widgets much like these: https://godbolt.org/g/6Y90j3 (I'm currently using the CodeMirror editor but am considering moving to Monaco). |
@mattgodbolt That widget is implemented by using both a view zone and an overlay widget. The trick is to listen to the view zone's callbacks in order to align the overlay widget on top of the view zone. |
That's fantastic: thanks @alexandrudima |
The ability to add inline blocks of html and have the editor display and not overlay other lines allows extensions to build very rich and interactive experiences, versus just writing something to a console.
An issue for this feature was created in the main vscode project (microsoft/vscode#3220) but I suspect that the functionality to add this feature would need to be added to Monaco, so I've created an issue here. Please see the comments on vscode issue for additional discussion.
Here's an example of what the inline results might look like
Atom has also implemented a similar feature called Block Decorations which appears to be used by a plugin already.
The text was updated successfully, but these errors were encountered: