From 01a48285c13c8e337abb77a13011257f2f0d6633 Mon Sep 17 00:00:00 2001 From: Fizz <13631686641@sina.cn> Date: Fri, 10 Mar 2023 06:21:40 +0000 Subject: [PATCH] createDecorationsCollection --- .../line-and-inline-decorations/sample.js | 3 +-- .../listening-to-mouse-events/sample.js | 3 +-- .../rendering-glyphs-in-the-margin/sample.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.js b/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.js index 7c406a50..edef623d 100644 --- a/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.js +++ b/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.js @@ -15,8 +15,7 @@ var editor = monaco.editor.create(document.getElementById("container"), { language: "javascript", }); -var decorations = editor.deltaDecorations( - [], +var decorations = editor.createDecorationsCollection( [ { range: new monaco.Range(3, 1, 5, 1), diff --git a/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.js b/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.js index e0932e03..60102177 100644 --- a/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.js +++ b/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.js @@ -17,8 +17,7 @@ var editor = monaco.editor.create(document.getElementById("container"), { contextmenu: false, }); -var decorations = editor.deltaDecorations( - [], +var decorations = editor.createDecorationsCollection( [ { range: new monaco.Range(3, 1, 3, 1), diff --git a/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.js b/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.js index 03379967..ed886c47 100644 --- a/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.js +++ b/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.js @@ -16,8 +16,7 @@ var editor = monaco.editor.create(document.getElementById("container"), { glyphMargin: true, }); -var decorations = editor.deltaDecorations( - [], +var decorations = editor.createDecorationsCollection( [ { range: new monaco.Range(3, 1, 3, 1),