-
Notifications
You must be signed in to change notification settings - Fork 295
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
Support displaying complex mime types in Output Widget #10327
Conversation
3fb4388
to
0e5912a
Compare
@@ -30,7 +30,6 @@ import { CellExecutionCreator } from './cellExecutionCreator'; | |||
import { IApplicationShell } from '../../platform/common/application/types'; | |||
import { disposeAllDisposables } from '../../platform/common/helpers'; | |||
import { traceError, traceWarning } from '../../platform/logging'; | |||
import { RefBool } from '../../platform/common/refBool'; |
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.
Don't need such a class, all we need is a property (added comments what the property does with reference to Jupyter docs)
Codecov Report
@@ Coverage Diff @@
## main #10327 +/- ##
=======================================
Coverage 70% 71%
=======================================
Files 480 480
Lines 28946 29009 +63
Branches 4860 4886 +26
=======================================
+ Hits 20498 20633 +135
+ Misses 6543 6430 -113
- Partials 1905 1946 +41
|
b4b373b
to
f3344fa
Compare
@@ -109,9 +109,14 @@ export function renderOutput(outputItem: OutputItem, element: HTMLElement, logge | |||
} | |||
export function disposeOutput(outputId?: string) { | |||
if (outputId) { | |||
const widget = renderedWidgets.get(outputId)?.widget; | |||
renderedWidgets.delete(outputId); |
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.
We weren't deleting the entry in the map and weren't disposing the widget either.
* - Clearing the custom output that was appended after the output widget. | ||
* - Appending custom output after the output widget | ||
*/ | ||
private updateJupyterOutputWidgetWithOutput( |
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.
Todo: Should add more comments
3284a50
to
bf09a8f
Compare
I have to admit this is way to complicated to grok your algorithm. I just hope we have enough tests. |
Yes, I think we have enough. Wil test a little bit more and look for different output widget usages and add more tests. |
e5a2dfc
to
d0e99b3
Compare
@rchiodo I'm going to merge this and will submit feature request (discuss with Rob & Matt) for the enhancements. |
d0e99b3
to
b2d9fc7
Compare
This reverts commit 94de3cd.
Fixes #9503