Clarify example

Add launch configuration
This commit is contained in:
Alex Dima 2018-06-12 09:43:14 +02:00
parent 198d321805
commit 5f84834ffa
2 changed files with 20 additions and 1 deletions

19
.vscode/launch.json vendored Normal file
View 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"
],
}
]
}

View file

@ -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")',