I confirm that this happens but I don’t know how to reproduce it. It started when I cleared the Custom Editor field in Preferences, while still editing scripts in VSCode.
@sergey.lerg said here that it also happens when you use an external code editor.
Created an issue #5583.