Open ckorherr opened 7 months ago
I think disposing a diff editor is not working, following is still returning the instance after disposing of it.
console.log(monaco.editor.getDiffEditors().length)
I've got the same problem....
Still a problem for us too. Might be a dupe of #4370
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
https://microsoft.github.io/monaco-editor/playground.html?source=v0.46.0#XQAAAALqAQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw0NV5ZhsAFQjfi1GSTeRDChAtr8RC8jhkfedYn4TxJcJIcii5J3w75DBaWbOhZVfaDoM0qNlMfjIIi_pOZYLb_yX2VN-mxu-31EI6AsKubDrHeOn3fZYRpWi1KUxh2o8VKGI7LMXVJRxHEnwngeYDTGHn_MvQm7gI3tM3v7q7odZIyj3tkPXGd6ood-qQEq5QZc9htrRKIl5cTTe9gUxIgdQlJLYIe_KvVnHMehoX20vMBOgD786Rg-CNED_yWwL2ZZqNvwL3d88f_-ZCt2A
Monaco Editor Playground Code
Reproduction Steps
Run the code and use the left right keys inside the editor.
Actual (Problematic) Behavior
Cursor jumps 2 characters
Expected Behavior
Cursor jumps 1 character
Additional Context
Doing the same with two containers works. Backspace is also deleting two characters.
Reusing the container more than ones increases the events up to 3 times.