As a result it make all existing marker's position to (LastRow, 0). (In gif (268, 0) history.js).
This is just making history useless.
How to fix?
Remove duplicate row 0 entries from history.
This mean, using prettier invalidate history on that editor, but it's better than keeping useless history.
Alternate approach to stop marker tracking position and keep old position before prettier update content is not work well, since we can NOT predetermine how much rewrite is done by prettier.
When I execute
prettier:format
.(LastRow, 0
). (In gif(268, 0) history.js
).How to fix?