Closing unsaved document should discard all edits

2023 and this still happening. Closing tabs should ask if you want save, discard changes or cancel. Or at least allow you decide discard doing right click in the tab and selecting in the menu