diff --git a/packages/kbn-monaco/src/xjson/language.ts b/packages/kbn-monaco/src/xjson/language.ts index 7b811eaee6ae..4ae7f2402ed2 100644 --- a/packages/kbn-monaco/src/xjson/language.ts +++ b/packages/kbn-monaco/src/xjson/language.ts @@ -54,7 +54,7 @@ const OWNER = 'XJSON_GRAMMAR_CHECKER'; export const registerGrammarChecker = () => { const allDisposables: monaco.IDisposable[] = []; - const updateAnnos = async (model: monaco.editor.IModel): Promise => { + const updateAnnotations = async (model: monaco.editor.IModel): Promise => { if (model.isDisposed()) { return; } @@ -84,11 +84,11 @@ export const registerGrammarChecker = () => { if (model.getModeId() === ID) { allDisposables.push( model.onDidChangeContent(async () => { - updateAnnos(model); + updateAnnotations(model); }) ); - updateAnnos(model); + updateAnnotations(model); } }; allDisposables.push(monaco.editor.onDidCreateModel(onModelAdd));