Adding a newline in the source should move pinned locations below that line down by 1. Under certain circumstances (which I haven't attempted to identify but which seem to occur fairly often), the pinned locations move by 2 instead. This completely defeats the purpose of pinning to see the results of edits made above in realtime. Note that this used to work correctly, so it must have been a recent regression.
Steps to Reproduce
Pin a location, for example Test.lean:100:2.
Add a newline above it.
Pinned location is now Test.lean:102:2.
Expected behavior: Pinned location updates to Test.lean:101:2.
Description
Adding a newline in the source should move pinned locations below that line down by 1. Under certain circumstances (which I haven't attempted to identify but which seem to occur fairly often), the pinned locations move by 2 instead. This completely defeats the purpose of pinning to see the results of edits made above in realtime. Note that this used to work correctly, so it must have been a recent regression.
Steps to Reproduce
Test.lean:100:2
.Test.lean:102:2
.Expected behavior: Pinned location updates to
Test.lean:101:2
.Actual behavior: As above.
Versions
vscode-lean4 v0.0.171
leanprover/lean4:4.10.0-rc1
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.