mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
* Adds hot reload launch config --------- Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com> Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
23 lines
863 B
TypeScript
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`),
|
|
});
|
|
}
|