-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monaco undo affects other user #398
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 952676946Details
💛 - Coveralls |
@@ -272,7 +272,7 @@ var MonacoAdapter = function () { | |||
*/ | |||
MonacoAdapter.prototype.registerUndo = function registerUndo(callback) { | |||
if (typeof callback === 'function') { | |||
this.callbacks.undo = callback; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
registerUndo
is called once during initialisation, but internally monaco can change model. This is required to handle such scenario. Rest looks fine. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think my approach is right as it can go out of sync and generate errors. Can you think of a way to solve this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am yet to test this out. I can look again then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Progyan1997 @adamjimenez just let me know when you two are satisfied with the solution here, this is beyond my knowledge of how Monaco works so I will defer to you.
fixes #397