Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
We are using your component extensively for marking license hits in the editor gutter with decorations. Each detected license gets its own colour, and we are passing this colour in linesDecorationsClassName. The result is this:
As some of these "license hits" overlap each other, we'd need a way to show "overlapping but offset" lines in the editor gutter, as described in this picture:
The problem is, lines decorations in the gutter always seem to stick to the rightmost end of the gutter, and setting the right margin for shifting some lines to the left does nothing. So, for example, this doesn't work at all:
Is this a limitation of the Monaco Editor component itself, and any ideas to circumvent it or implement some support for shifting the decorations horizontally in the editor gutter?
We are using your component extensively for marking license hits in the editor gutter with decorations. Each detected license gets its own colour, and we are passing this colour in linesDecorationsClassName. The result is this:
Currently, the lines are shown with
As some of these "license hits" overlap each other, we'd need a way to show "overlapping but offset" lines in the editor gutter, as described in this picture:
The problem is, lines decorations in the gutter always seem to stick to the rightmost end of the gutter, and setting the right margin for shifting some lines to the left does nothing. So, for example, this doesn't work at all:
Is this a limitation of the Monaco Editor component itself, and any ideas to circumvent it or implement some support for shifting the decorations horizontally in the editor gutter?