Problem
loadMarkdown closes the active tab whenever a read reports a missing file. A file watcher can observe a transient gap while another process atomically replaces the file, so this can remove a tab even though the document was just saved and remains recoverable.
Expected behavior
Keep the tab and its in-memory buffer on every load failure. Surface the error and let the user decide whether to retry, save, or close it.
Scope
Do not remove the recent-file entry or close the tab from the load error handler.
Problem
loadMarkdowncloses the active tab whenever a read reports a missing file. A file watcher can observe a transient gap while another process atomically replaces the file, so this can remove a tab even though the document was just saved and remains recoverable.Expected behavior
Keep the tab and its in-memory buffer on every load failure. Surface the error and let the user decide whether to retry, save, or close it.
Scope
Do not remove the recent-file entry or close the tab from the load error handler.