提交 953acb6d 编写于 作者: A Alex Dima

Fixes Microsoft/monaco-editor#278

上级 409a694c
......@@ -21,10 +21,17 @@ import { EDITOR_DEFAULTS, WrappingIndent } from 'vs/editor/common/config/editorO
(<any>EDITOR_DEFAULTS.contribInfo).folding = false;
(<any>EDITOR_DEFAULTS.viewInfo).glyphMargin = false;
let base = createMonacoBaseAPI();
for (let prop in base) {
if (base.hasOwnProperty(prop)) {
exports[prop] = base[prop];
}
}
exports.editor = createMonacoEditorAPI();
exports.languages = createMonacoLanguagesAPI();
var global: any = self;
global.monaco = createMonacoBaseAPI();
global.monaco.editor = createMonacoEditorAPI();
global.monaco.languages = createMonacoLanguagesAPI();
global.monaco = exports;
if (typeof global.require !== 'undefined' && typeof global.require.config === 'function') {
global.require.config({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册