/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { EDITOR_DEFAULTS } from './common/config/editorOptions.js'; import { createMonacoBaseAPI } from './common/standalone/standaloneBase.js'; import { createMonacoEditorAPI } from './standalone/browser/standaloneEditor.js'; import { createMonacoLanguagesAPI } from './standalone/browser/standaloneLanguages.js'; var global = self; // Set defaults for standalone editor EDITOR_DEFAULTS.wrappingIndent = 0 /* None */; EDITOR_DEFAULTS.viewInfo.glyphMargin = false; EDITOR_DEFAULTS.autoIndent = false; var api = createMonacoBaseAPI(); api.editor = createMonacoEditorAPI(); api.languages = createMonacoLanguagesAPI(); export var CancellationTokenSource = api.CancellationTokenSource; export var Emitter = api.Emitter; export var KeyCode = api.KeyCode; export var KeyMod = api.KeyMod; export var Position = api.Position; export var Range = api.Range; export var Selection = api.Selection; export var SelectionDirection = api.SelectionDirection; export var MarkerSeverity = api.MarkerSeverity; export var MarkerTag = api.MarkerTag; export var Uri = api.Uri; export var Token = api.Token; export var editor = api.editor; export var languages = api.languages; global.monaco = api; if (typeof global.require !== 'undefined' && typeof global.require.config === 'function') { global.require.config({ ignoreDuplicateModules: [ 'vscode-languageserver-types', 'vscode-languageserver-types/main', 'vscode-nls', 'vscode-nls/vscode-nls', 'jsonc-parser', 'jsonc-parser/main', 'vscode-uri', 'vscode-uri/index', 'vs/basic-languages/typescript/typescript' ] }); }