Fix: enable linter after processing metadata (#1018)
This commit is contained in:
parent
7d93608186
commit
a0172c262c
|
@ -50,10 +50,10 @@ function createSourceEditor({style, onTitleChanged}) {
|
|||
updateMeta();
|
||||
});
|
||||
|
||||
linter.enableForEditor(cm);
|
||||
|
||||
updateMeta().then(() => {
|
||||
|
||||
linter.enableForEditor(cm);
|
||||
|
||||
let prevMode = NaN;
|
||||
cm.on('optionChange', (cm, option) => {
|
||||
if (option !== 'mode') return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user