monaco-editor
Version:
A browser based code editor
30 lines (29 loc) • 643 B
JavaScript
/**
* @internal
*/
export function isThemeColor(o) {
return o && typeof o.id === 'string';
}
/**
* The type of the `IEditor`.
*/
export var EditorType = {
ICodeEditor: 'vs.editor.ICodeEditor',
IDiffEditor: 'vs.editor.IDiffEditor'
};
/**
* Built-in commands.
* @internal
*/
export var Handler = {
ExecuteCommand: 'executeCommand',
ExecuteCommands: 'executeCommands',
Type: 'type',
ReplacePreviousChar: 'replacePreviousChar',
CompositionStart: 'compositionStart',
CompositionEnd: 'compositionEnd',
Paste: 'paste',
Cut: 'cut',
Undo: 'undo',
Redo: 'redo',
};