-
Notifications
You must be signed in to change notification settings - Fork 45
Fix modifyCell
or modifyEditor
not called after text editor is opened after notebook
#105
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
Fix modifyCell
or modifyEditor
not called after text editor is opened after notebook
#105
Conversation
…ng signal to manager
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.
Yes, in principle it looks right, though I would avoid console.warn
in final version to keep the dev console usable. Does it fix the problem?
Yes, as far as I can tell. The code block and the Lines 87 to 104 in f08ef41
Do you have any suggestions on what the console.warn should be replaced with? Also, I suppose I'm supposed to refactor this out into a function so that it isn't duplicated?
|
Well, the difference is that when IMO duplication is fine as these are slightly different contexts. |
The build process fails without the |
modifyCell
or modifyEditor
not called after text editor is opened after notebook
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.
Thank you @firai. Tested on binder, works well.
Fixes #103.
On
ILabShell
currentChanged()
, check ifcurrentWidget
matches one tracked byeditorTracker
ornotebookTracker
, and callmodifyEditor()
ormodifyCell()
accordingly.@krassowski, can you please help review whether this is right approach?