Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
"type": "chrome",
"request": "launch",
"url": "http://localhost:5001",
"preLaunchTask": "Launch Http Server",
"preLaunchTask": "Launch Monaco Editor Vite",
"presentation": {
"group": "monaco",
"order": 4
Expand Down
12 changes: 6 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,12 @@
"detail": "node_modules/tsec/bin/tsec -p src/tsconfig.json --noEmit"
},
{
"label": "Launch Http Server",
"label": "Launch Monaco Editor Vite",
"type": "shell",
"command": "node_modules/.bin/ts-node -T ./scripts/playground-server",
"command": "npm run dev",
"options": {
"cwd": "./build/monaco-editor-playground/"
},
"isBackground": true,
"problemMatcher": {
"pattern": {
Expand All @@ -292,10 +295,7 @@
"beginsPattern": "never match",
"endsPattern": ".*"
}
},
"dependsOn": [
"Core - Build"
]
}
},
{
"label": "Launch MCP Server",
Expand Down
6 changes: 6 additions & 0 deletions build/monaco-editor-playground/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<html lang="en">
<body>
Comment on lines +1 to +2
Copy link

Copilot AI Nov 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HTML document is missing the DOCTYPE declaration, <head> section, and charset meta tag. Add <!DOCTYPE html> at the top, and include a proper <head> section with <meta charset="UTF-8"> to ensure proper rendering and character encoding.

See below for a potential fix:

@ -1,4 +1,9 @@
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Monaco Editor Playground</title>
	</head>

Copilot uses AI. Check for mistakes.
<div id="root"></div>
<script src="./index.ts" type="module"></script>
</body>
</html>
26 changes: 26 additions & 0 deletions build/monaco-editor-playground/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*---------------------------------------------------------------------------------------------
* 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" />

import './style.css';

/* eslint-disable local/code-no-standalone-editor */
export * from '../../src/vs/editor/editor.main';

Check failure on line 11 in build/monaco-editor-playground/index.ts

View workflow job for this annotation

GitHub Actions / Compile & Hygiene

Cannot find module '../../src/vs/editor/editor.main' or its corresponding type declarations.

import * as monaco from '../../src/vs/editor/editor.main';

Check failure on line 13 in build/monaco-editor-playground/index.ts

View workflow job for this annotation

GitHub Actions / Compile & Hygiene

Cannot find module '../../src/vs/editor/editor.main' or its corresponding type declarations.

globalThis.monaco = monaco;

/*
const root = document.getElementById('root')!;
const d = m.editor.createDiffEditor(root);

d.setModel({
modified: m.editor.createModel(`hello world`),
original: m.editor.createModel(`hello monaco`),
});

*/
Loading
Loading