atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

Drop borrows before notifying observer of text changes #159

Closed as-cii closed 5 years ago

as-cii commented 5 years ago

The observer could always call back into WorkTree after being notified of text changes. If we have any outstanding borrow, this would cause a double borrow exception and a subsequent crash.

/cc: @nathansobo