mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Clarify example
Add launch configuration
This commit is contained in:
parent
198d321805
commit
5f84834ffa
2 changed files with 20 additions and 1 deletions
19
.vscode/launch.json
vendored
Normal file
19
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}/test/",
|
||||||
|
"name": "Launch Program",
|
||||||
|
"program": "${workspaceFolder}/node_modules/.bin/webpack",
|
||||||
|
"args": [
|
||||||
|
"--config",
|
||||||
|
"webpack.config.js"
|
||||||
|
],
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import * as monaco from 'monaco-editor';
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
||||||
|
|
||||||
monaco.editor.create(document.getElementById('container'), {
|
monaco.editor.create(document.getElementById('container'), {
|
||||||
value: 'console.log("Hello, world")',
|
value: 'console.log("Hello, world")',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue