mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Fix the sample 'model-markers-example' compilation failure
This commit is contained in:
parent
8f9c2ecf4f
commit
e1906cbd8d
1 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,9 @@ abcd
|
||||||
234.56`;
|
234.56`;
|
||||||
const uri = monaco.Uri.parse("inmemory://test");
|
const uri = monaco.Uri.parse("inmemory://test");
|
||||||
const model = monaco.editor.createModel(value, "demoLanguage", uri);
|
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);
|
validate(model);
|
||||||
model.onDidChangeContent(() => {
|
model.onDidChangeContent(() => {
|
||||||
validate(model);
|
validate(model);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue