mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 13:40:25 +00:00
15 lines
607 B
JavaScript
15 lines
607 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
const vscode = acquireVsCodeApi();
|
|
|
|
const notebook = acquireNotebookRendererApi();
|
|
|
|
notebook.onDidCreateOutput(({ element, mimeType }) => {
|
|
const div = document.createElement('div');
|
|
div.innerText = `Hello ${mimeType}!`;
|
|
element.appendChild(div);
|
|
});
|