monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

[Bug] Diff editor could not be calculated if long time no interact with the editor.

Open pvnamGit opened this issue 3 years ago • 3 comments

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?

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. Screenshot from 2022-07-19 21-54-09 But when I don't interact with the editor for a time, the editor does not detect diff value. Screenshot from 2022-07-19 22-11-08

Expected Behavior

No response

Additional Context

No response

pvnamGit avatar Jul 19 '22 15:07 pvnamGit

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.

hediet avatar Jul 20 '22 13:07 hediet

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.

pvnamGit avatar Jul 20 '22 17:07 pvnamGit

I cannot verify. I left the tab open for 2 hours, and diffing still works.

hediet avatar Jul 21 '22 11:07 hediet

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!

github-actions[bot] avatar Feb 07 '23 15:02 github-actions[bot]