Does this issue occur when all extensions are disabled?: Yes
Version: 1.107.1
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Linux x64 6.8.0-90-generic
Example. The last two lines on the screenshot were duplicated twice over multiple Save+Format on save executions:
Steps to Reproduce:
- Create a Python file with some code
- Save with format-on-save (e.g., Black) multiple times (might require some violation of the PEP8 style to take effect)
- Observe new statements (valid or invalid) appear at the end of the file
The issue has been there for a few months.