Fix: enable linter after processing metadata

This commit is contained in:
eight04 2020-08-15 05:25:33 +08:00
parent 7d93608186
commit 8ba762dd28

View File

@ -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;