You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the changes in #22929 the behavior is to resolve anchors to points in the current buffer snapshot. This is an improvement over the state before, where these points were computed in editor.rs.
There are two ways snapshots should be used here:
To know the point ranges to send to the LSP.
To apply edits from the LSP correctly.
It might not be great to rely on commutative edits here. The best thing to do might be to abort a particular selection or buffer's formatting if there are conflicts, maybe even with some limited retry.
Zed Version and System Specs
N/A
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered:
Check for existing issues
Describe the bug / provide steps to reproduce it
With the changes in #22929 the behavior is to resolve anchors to points in the current buffer snapshot. This is an improvement over the state before, where these points were computed in
editor.rs
.There are two ways snapshots should be used here:
It might not be great to rely on commutative edits here. The best thing to do might be to abort a particular selection or buffer's formatting if there are conflicts, maybe even with some limited retry.
Zed Version and System Specs
N/A
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
No response
The text was updated successfully, but these errors were encountered: