monaco-editor
monaco-editor copied to clipboard
[Bug] Diff editor could not be calculated if long time no interact with the editor.
Reproducible in vscode.dev or in VS Code Desktop?
- [X] Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- [X] Not reproducible in the monaco editor playground
Monaco Editor Playground Code
No response
Reproduction Steps
No response
Actual (Problematic) Behavior
I created a diff editor to integrate with Git. Like VSCode, if there are any changes from the editor, the source control section will show diff editors. It works well.
But when I don't interact with the editor for a time, the editor does not detect diff value.

Expected Behavior
No response
Additional Context
No response
But when I don't interact with the editor for a time, the editor does not detect diff value.
What do you mean with "long" time?
- [x] Not reproducible in the monaco editor playground
Unfortunately, we need reproduction steps to verify that this bug even exists, before we can look into fixing it.
I checked and realized that about 10 minutes, if I didn't interact with an editor, it can not be able to calculated the differences between original model and modified model. I have no idea why it shows two editor but does not calculate the difference.
I cannot verify. I left the tab open for 2 hours, and diffing still works.
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!