You're editing docker-compose.yaml in the side panel. Save accidentally inserts a tab character in front of ports:, breaking YAML indentation. The editor surface is supposed to block the save with a parser error before it reaches disk. Confirm the guard fires.
You've solved it when:
ports: and Save is rejected