Explorar o código

Improves monaco editor playground experience

Henning Dieterichs hai 1 ano
pai
achega
ea1ee1ab50
Modificáronse 2 ficheiros con 13 adicións e 2 borrados
  1. 12 1
      .vscode/launch.json
  2. 1 1
      src/language/json/monaco.contribution.ts

+ 12 - 1
.vscode/launch.json

@@ -5,7 +5,7 @@
 	"version": "0.2.0",
 	"configurations": [
 		{
-			"name": "Monaco Editor Playground",
+			"name": "Monaco Editor Playground (Languages from source, needs 'npm run watch', no JSON/CSS/... workers!)",
 			"type": "chrome",
 			"request": "launch",
 			"url": "https://microsoft.github.io/monaco-editor/playground.html?sourceLanguages=http%3A%2F%2Flocalhost%3A5002%2Fout%2Flanguages%2Famd-tsc",
@@ -15,6 +15,17 @@
 				"order": 1
 			}
 		},
+		{
+			"name": "Monaco Editor Playground (Languages locally bundled, needs 'npm run build')",
+			"type": "chrome",
+			"request": "launch",
+			"url": "https://microsoft.github.io/monaco-editor/playground.html?sourceLanguages=http%3A%2F%2Flocalhost%3A5002%2Fout%2Flanguages%2Fbundled%2Famd-dev%2Fvs",
+			"preLaunchTask": "Launch Http Server",
+			"presentation": {
+				"group": "monaco",
+				"order": 1
+			}
+		},
 		{
 			"name": "Website",
 			"type": "chrome",

+ 1 - 1
src/language/json/monaco.contribution.ts

@@ -4,7 +4,7 @@
  *--------------------------------------------------------------------------------------------*/
 
 import * as mode from './jsonMode';
-import { Emitter, IEvent, languages, Uri } from 'monaco-editor-core';
+import { Emitter, IEvent, languages, Uri } from '../../fillers/monaco-editor-core';
 
 // ---- JSON service types ----
 export interface BaseASTNode {