From ea1ee1ab50700e20e93d237af291e59253556ae3 Mon Sep 17 00:00:00 2001 From: Henning Dieterichs Date: Fri, 3 May 2024 11:18:25 +0200 Subject: [PATCH] Improves monaco editor playground experience --- .vscode/launch.json | 13 ++++++++++++- src/language/json/monaco.contribution.ts | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 44c09c98..fe948a34 100644 --- a/.vscode/launch.json +++ b/.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", diff --git a/src/language/json/monaco.contribution.ts b/src/language/json/monaco.contribution.ts index ae44000f..8b6f7110 100644 --- a/src/language/json/monaco.contribution.ts +++ b/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 {