Open jtbandes opened 4 hours ago
It seems like the marker always has line: 0
. Maybe this is because the newly written input has not yet been parsed?
Waiting for the new input to be parsed before adding the marker might introduce a lot of delay (I assume I would also have to delay writing any additional lines until the parsing finishes). Is there any way to do this without waiting, or to force processing of the write buffer?
When writing a large batch of lines after clearing the terminal, and using
registerMarker
+registerDecoration
to render colors in the overview ruler, the decorations do not appear if all the lines are written at once. If a small delay is introduced withsetTimeout
, the decorations work properly.Additionally, a small decoration sometimes remains at the very top of the overview ruler even after the terminal is cleared.
https://github.com/user-attachments/assets/b52d0096-d6b7-455e-a082-d7ce251e3b69
Details
Steps to reproduce
https://codesandbox.io/p/sandbox/xtermjs-test-forked-yxrd7j