I have figured out the issue. It’s a case of a race condition between multiple panes open to the same file, trying to override each other.
Previously we’ve relied on a boolean flag to indicate whether the pane’s editor is loading, but I believe in the case of a race condition where data may be loaded twice, it would only set the boolean flag once, which causes the second load to overwrite.
I’ve changed the way data loading is detected, and is now guaranteed to only communicate across panes when changes are sourced from user-edits, rather than file loading.
After testing with @Bora it seems like my fix is effective. He was unable to reproduce the issue with my test release where before he could reproduce the issue quite easily.
As this is a serious issue, it will be released for v0.6.2 as soon as possible.
cc @mediapathic who has also experienced this.