Files
vscode/build/vite/index.ts
Henning Dieterichs a335d51f66 Adds hot reload launch config (#277123)
* Adds hot reload launch config

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2025-11-21 11:18:47 +01:00

23 lines
863 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path="../../src/vs/monaco.d.ts" />
/* eslint-disable local/code-no-standalone-editor */
export * from '../../src/vs/editor/editor.main';
import './style.css';
import * as monaco from '../../src/vs/editor/editor.main';
globalThis.monaco = monaco;
const root = document.getElementById('sampleContent');
if (root) {
const d = monaco.editor.createDiffEditor(root);
d.setModel({
modified: monaco.editor.createModel(`hello world`),
original: monaco.editor.createModel(`hello monaco`),
});
}