Fix the sample 'model-markers-example' compilation failure

This commit is contained in:
Floyd Wang 2023-02-17 15:52:12 +08:00
parent 8f9c2ecf4f
commit e1906cbd8d

View file

@ -41,7 +41,9 @@ abcd
234.56`;
const uri = monaco.Uri.parse("inmemory://test");
const model = monaco.editor.createModel(value, "demoLanguage", uri);
editor = monaco.editor.create(document.getElementById("container"), { model });
const editor = monaco.editor.create(document.getElementById("container"), {
model,
});
validate(model);
model.onDidChangeContent(() => {
validate(model);