58, #57 are related to cases when the bookmark list contain bookmarks for editors that don't exist anymore. There are two cases:
When the editor was pending
I propose to clear the pending status when a bookmark is set. After all, if you set a bookmark on a file, you probably don't want it to disappear when previewing another file.
Other situations where we don't have a clear scenario
I encountered such situations, yet couldn't reproduce them. I propose some simple defensive code: verify that editors are still alive before putting their bookmarks in the list.
58, #57 are related to cases when the bookmark list contain bookmarks for editors that don't exist anymore. There are two cases:
When the editor was pending
I propose to clear the pending status when a bookmark is set. After all, if you set a bookmark on a file, you probably don't want it to disappear when previewing another file.
Other situations where we don't have a clear scenario
I encountered such situations, yet couldn't reproduce them. I propose some simple defensive code: verify that editors are still alive before putting their bookmarks in the list.