From e1906cbd8d451560664fc865504fde8f7fe034d1 Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Fri, 17 Feb 2023 15:52:12 +0800 Subject: [PATCH] Fix the sample 'model-markers-example' compilation failure --- .../model-markers-example/sample.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.js b/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.js index 8d8bb899..0492bd8f 100644 --- a/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.js +++ b/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.js @@ -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);