UNPKG

@kusto/monaco-kusto

Version:

CSL, KQL plugin for the Monaco Editor

20 lines (19 loc) 629 B
import type * as monaco from 'monaco-editor/esm/vs/editor/editor.api'; /** * Highlights the command that surround cursor location */ export default class KustoCommandHighlighter implements monaco.editor.IEditorContribution { private editor; private static readonly ID; private static CURRENT_COMMAND_HIGHLIGHT; private disposables; private decorations; /** * Register to cursor movement and selection events. * @param editor monaco editor instance */ constructor(editor: monaco.editor.ICodeEditor); getId(): string; dispose(): void; private highlightCommandUnderCursor; }