mirror of
https://github.com/Microsoft/vscode
synced 2024-10-06 03:17:00 +00:00
Fix notebook-renderers compile error (#179506)
This commit is contained in:
parent
7f03ec6f7a
commit
8e89509008
|
@ -218,7 +218,10 @@ function findScrolledHeight(scrollableElement: HTMLElement): number | undefined
|
|||
}
|
||||
|
||||
function scrollingEnabled(output: OutputItem, options: RenderOptions) {
|
||||
return output.metadata?.scrollable !== undefined ? output.metadata?.scrollable : options.outputScrolling;
|
||||
const metadata = output.metadata;
|
||||
return (typeof metadata === 'object' && metadata
|
||||
&& 'scrollable' in metadata && typeof metadata.scrollable === 'boolean') ?
|
||||
metadata.scrollable : options.outputScrolling;
|
||||
}
|
||||
|
||||
function renderStream(outputInfo: OutputItem, outputElement: HTMLElement, error: boolean, ctx: IRichRenderContext): IDisposable {
|
||||
|
|
Loading…
Reference in a new issue