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
Refactor of Notebook and Console Content Factories #1482
Conversation
3015cf9
to
e36d609
Compare
// Set the completer widget's anchor node to peg its position. | ||
this._completer.anchor = this.node; | ||
|
||
// Because a completer widget may be passed in, check if it is attached. |
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.
This comment (and the attachment check) are no longer relevant.
rawCellContentFactory?: BaseCellWidget.IContentFactory; | ||
|
||
/** | ||
* The factory for console wiget content. If given, this will |
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.
Typo: wiget
// Set up the completer handler. | ||
this._completerHandler = new CellCompleterHandler({ | ||
// Because a completer widget may be passed in, check if it is attached. | ||
if (!this._completer.isAttached) { |
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.
Same as with console, this attachment check is no longer necessary.
Not sure why Appveyor refused to build the last commit. It was right about the time I enabled my own fork on Appveyor, so I suspect it was a glitch. |
Epic 👍 |
Renames
IRenderer
toIContentFactory
and cleans up implementation and naming consistency down the line across Console and Notebook/Cell/Output Area.Fixes #905. Fixes #1415. Fixes #1414.
The intent of this PR is to enable dependency injection of lower-level components into a hierarchy without subclassing any of the intermediate components. For example, one can inject a custom output area from the notebook panel level.