Commit a96c4468 authored by Boris Kocherov's avatar Boris Kocherov

demo/with_monaco: update monaco editor and enable enableSchemaRequest

parent 120cbfd9
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<script src="../../rsvp.js"></script> <script src="../../rsvp.js"></script>
<script src="../../renderjs.js"></script> <script src="../../renderjs.js"></script>
<script src="https://unpkg.com/monaco-editor@0.14.3/min/vs/loader.js"></script> <script src="https://unpkg.com/monaco-editor@0.15.5/min/vs/loader.js"></script>
<script src="index.js"></script> <script src="index.js"></script>
</head> </head>
......
...@@ -19,15 +19,15 @@ ...@@ -19,15 +19,15 @@
*/ */
require.config({ require.config({
paths: {vs: "https://unpkg.com/monaco-editor@0.14.3/min/vs"} paths: {vs: "https://unpkg.com/monaco-editor@0.15.5/min/vs"}
}); });
let proxy = URL.createObjectURL( let proxy = URL.createObjectURL(
new Blob( new Blob(
[` [`
self.MonacoEnvironment = { self.MonacoEnvironment = {
baseUrl: 'https://unpkg.com/monaco-editor@0.14.3/min/' baseUrl: 'https://unpkg.com/monaco-editor@0.15.5/min/'
}; };
importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerMain.js'); importScripts('https://unpkg.com/monaco-editor@0.15.5/min/vs/base/worker/workerMain.js');
` `
], ],
{type: "text/javascript"} {type: "text/javascript"}
...@@ -90,6 +90,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM ...@@ -90,6 +90,7 @@ importScripts('https://unpkg.com/monaco-editor@0.14.3/min/vs/base/worker/workerM
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({ monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
validate: true, validate: true,
enableSchemaRequest: true,
schemas: schemas schemas: schemas
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment