提交 35209395 编写于 作者: J Johannes Rieken 提交者: GitHub

Merge pull request #37017 from wenshiqi0/fix-monaco

global is undefined while polyfilling the native promise
......@@ -19,6 +19,9 @@ import { createMonacoEditorAPI } from 'vs/editor/standalone/browser/standaloneEd
import { createMonacoLanguagesAPI } from 'vs/editor/standalone/browser/standaloneLanguages';
import { EDITOR_DEFAULTS, WrappingIndent } from 'vs/editor/common/config/editorOptions';
var global: any = self;
global.monaco = exports;
// When missing, polyfill the native promise
// with our winjs-based polyfill
import { PolyfillPromise } from 'vs/base/common/winjs.polyfill.promise';
......@@ -41,9 +44,6 @@ for (let prop in base) {
exports.editor = createMonacoEditorAPI();
exports.languages = createMonacoLanguagesAPI();
var global: any = self;
global.monaco = exports;
if (typeof global.require !== 'undefined' && typeof global.require.config === 'function') {
global.require.config({
ignoreDuplicateModules: [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册