Merge pull request #3574 from madcodelife/main

Fix the sample 'model-markers-example' compilation failure
pull/3578/head
Henning Dieterichs 2023-02-17 11:23:22 +01:00 committed by GitHub
commit c6c3d1db73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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