Thanks. This is probably what I want.
So I tried to modify a version of a decoration’s line widget that I have.
But if I set the block to true, I will get the following error:
Unhandled Runtime Error
RangeError: Block decorations may not be specified via plugins
Which is understandable because I use .range(num)
to create the Decoration like this:
let widgets = [];
...
widgets.push(widget.range(line.from));
...
return Decoration.set(widgets);
But if I remove the .range(num)
then it would not work either. Any advice on how to create a block widget?