Don’t places autosave before running? The only instance in which this would be fatal is if a plugin containing such code was reloaded (possibly via update) during an edit session.
Agreed, Roblox Studio has a default 5 minute Auto Save time I believe… so barely any work will be lost along with the Script Recovery function accessable in Studio that allows you to recover the lost scripts.
This is actually rather amusing; I was recently working on a lexer style program for Lua and came across an issue when parsing incomplete global statements.