Browse Source

Clarify example
Add launch configuration

Alex Dima 7 years ago
parent
commit
5f84834ffa
2 changed files with 20 additions and 1 deletions
  1. 19 0
      .vscode/launch.json
  2. 1 1
      test/index.js

+ 19 - 0
.vscode/launch.json

@@ -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 - 1
test/index.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'), {
     value: 'console.log("Hello, world")',