Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit b639a05

Browse files
committed
update to monaco-editor 0.11.1
Fixes #723
1 parent 8b3e5d4 commit b639a05

File tree

1 file changed

+7
-1
lines changed
  • app/plugins/modules/editor/lib

1 file changed

+7
-1
lines changed

app/plugins/modules/editor/lib/edit.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ const openEditor = wsk => {
306306
// Monaco uses a custom amd loader that over-rides node's require.
307307
// Keep a reference to node's require so we can restore it after executing the amd loader file.
308308
const nodeRequire = global.require;
309-
ui.injectScript('https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.10.1/min/vs/loader.js')
309+
ui.injectScript('https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.11.1/min/vs/loader.js')
310310
ui.injectCSS(path.join(__dirname, 'mono-blue.css'))
311311
ui.injectCSS(path.join(__dirname, 'editor.css'))
312312

@@ -365,6 +365,12 @@ const openEditor = wsk => {
365365
monaco.languages.registerCompletionItemProvider(language, provider)
366366
})
367367

368+
// e.g. js-beautify detects global.define and
369+
// tries to use it, but in a way that is
370+
// incompatible with whatever amd that monaco
371+
// incorporates
372+
global.define = undefined
373+
368374
initDone = true
369375
}
370376

0 commit comments

Comments
 (0)