From 54a4e45a10abc8c7edf2dd9febaa5ffc19734892 Mon Sep 17 00:00:00 2001 From: Remy Suen Date: Mon, 3 Oct 2022 12:12:01 -0400 Subject: [PATCH] Fix the color provider's columns Fix the example so that the document colors' ranges encompass the entire word. Signed-off-by: Remy Suen --- .../color-provider-example/sample.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/playground/new-samples/extending-language-services/color-provider-example/sample.js b/website/playground/new-samples/extending-language-services/color-provider-example/sample.js index 3ce40628..f3c70057 100644 --- a/website/playground/new-samples/extending-language-services/color-provider-example/sample.js +++ b/website/playground/new-samples/extending-language-services/color-provider-example/sample.js @@ -34,27 +34,27 @@ monaco.languages.registerColorProvider('colorLanguage', { color: { red: 1, blue: 0, green: 0, alpha: 1 }, range: { startLineNumber: 1, - startColumn: 0, + startColumn: 1, endLineNumber: 1, - endColumn: 0 + endColumn: 4 } }, { color: { red: 0, blue: 1, green: 0, alpha: 1 }, range: { startLineNumber: 2, - startColumn: 0, + startColumn: 1, endLineNumber: 2, - endColumn: 0 + endColumn: 5 } }, { color: { red: 0, blue: 0, green: 1, alpha: 1 }, range: { startLineNumber: 3, - startColumn: 0, + startColumn: 1, endLineNumber: 3, - endColumn: 0 + endColumn: 6 } } ];