mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01: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);
|
|
});
|