Conversation
|
@Tyriar I think this should get a few unit test cases before it can be merged. Currently I am not sure, what action will trigger |
|
@jerch sounds good, I think the only cases are:
|
Tyriar
left a comment
There was a problem hiding this comment.
Good to merge now or when tests are added
|
@Tyriar Have implemented basic marker test cases for these actions:
There are multiple issues with the tests - first I tried to get those test cases running on
Imho we can still add the fixes here, and maybe address the issues above with later PRs? |
|
@Tyriar Got |
|
@Tyriar Thinking about the interface - could we make Somthing like this: interface IMarker {
...
onDispose: IEvent<number>;
}
...
marker.onDispose(lastLine => {
// lastLine holds idx of last line
});Would only need a tiny change here: xterm.js/src/common/buffer/Marker.ts Lines 32 to 34 in faa60be Update: Not going to change that, seems it has only a small benefit of avoid scanning through the active cursor area, but that is rather small compared to the whole buffer. |
|
Thanks for merging and sorry about the disappearance 🙂 |
|
@Tyriar Ah no worries, I think the added events in |
Shall fix #3108.
Changes:
super.dispose()in overloaded methodonDisposeadded to public API