Skip to content

Commit

Permalink
updateAnnos -> updateAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Aug 18, 2020
1 parent 74e5534 commit c242a89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kbn-monaco/src/xjson/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const OWNER = 'XJSON_GRAMMAR_CHECKER';
export const registerGrammarChecker = () => {
const allDisposables: monaco.IDisposable[] = [];

const updateAnnos = async (model: monaco.editor.IModel): Promise<void> => {
const updateAnnotations = async (model: monaco.editor.IModel): Promise<void> => {
if (model.isDisposed()) {
return;
}
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit c242a89

Please sign in to comment.