license import * as monacoEditor from "monaco-editor" ; import NOTATION_SYMBOLS from "./NOTATION_SYMBOLS" ; const LILYPOND_COMPLETION_ITEM_PROVIDER = { provideCompletionItems ( model , position , _context , _token ) { const textUntilPosition = model . getValueInRange ( { endColumn : position . column , endLineNumber : position . lineNumber , startColumn : 1 , startLineNumber : 1 , } ) ; if ( textUntilPosition [ textUntilPosition . length - 2 ] === "\\" ) { return { suggestions : NOTATION_SYMBOLS } ; } return { suggestions : [ { kind : 0 , label : "" , insertText : "" , range : null as any , } , ] , } ; } , } ; export default LILYPOND_COMPLETION_ITEM_PROVIDER ;