Question: icon in the gutters for editor decoration #9202
-
My apologies if questions are expected to be posted elsewhere. Please point me to that place where questions such as this one can posted. Thanks. Question. I'd like to show a decoration in the editor gutters for some text range. The decoration is icon in the gutters. I have injected the
Setting the decoration:
Style for line decoration and The HighlightParams:
How should the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
First of all, please use FYI, you can use monaco playground to test your styles. Try something like |
Beta Was this translation helpful? Give feedback.
-
Thanks. Will stay away from using 'EditorDecorationsService'
I see this in the console: When I had to do the same in Atom the URL for the icon was Does this URL should be similar to Atom's? Maybe |
Beta Was this translation helpful? Give feedback.
-
here is an example how to reference images: https://github.com/theia-ide/theia/blob/master/packages/core/src/browser/style/variables-bright.useable.css#L158 |
Beta Was this translation helpful? Give feedback.
here is an example how to reference images: https://github.com/theia-ide/theia/blob/master/packages/core/src/browser/style/variables-bright.useable.css#L158