UNPKG

monaco-editor

Version:
44 lines (41 loc) 1.83 kB
import { CancellationTokenSource } from '../../../base/common/cancellation.js'; import { Emitter } from '../../../base/common/event.js'; import { KeyChord } from '../../../base/common/keyCodes.js'; import { URI } from '../../../base/common/uri.js'; import { Position } from '../core/position.js'; import { Range } from '../core/range.js'; import { Selection } from '../core/selection.js'; import { Token } from '../languages.js'; import { MarkerTag, MarkerSeverity, SelectionDirection, KeyCode } from '../standalone/standaloneEnums.js'; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ class KeyMod { static { this.CtrlCmd = 2048 /* ConstKeyMod.CtrlCmd */; } static { this.Shift = 1024 /* ConstKeyMod.Shift */; } static { this.Alt = 512 /* ConstKeyMod.Alt */; } static { this.WinCtrl = 256 /* ConstKeyMod.WinCtrl */; } static chord(firstPart, secondPart) { return KeyChord(firstPart, secondPart); } } function createMonacoBaseAPI() { return { editor: undefined, // undefined override expected here languages: undefined, // undefined override expected here CancellationTokenSource: CancellationTokenSource, Emitter: Emitter, KeyCode: KeyCode, KeyMod: KeyMod, Position: Position, Range: Range, Selection: Selection, SelectionDirection: SelectionDirection, MarkerSeverity: MarkerSeverity, MarkerTag: MarkerTag, Uri: URI, Token: Token }; } export { KeyMod, createMonacoBaseAPI };