You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am listening the onDidChangeModelContent event. When the content has been changed, I did some updates on the editor value and set the value e.g. editor.getModel().setValue(trimmedValue);. However, when the setValue is called, the cursor moves to the document header.
Describe the bug
I am listening the
onDidChangeModelContent
event. When the content has been changed, I did some updates on the editor value and set the value e.g.editor.getModel().setValue(trimmedValue);
. However, when the setValue is called, the cursor moves to the document header.To Reproduce
Expected behavior
When setValue is called, the cursor should stay at the original position
Screenshots
If applicable, add screenshots to help to explain your problem.
Desktop (please complete the following information):
monaco-editor: 0.47.0
)Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: