Fix the color provider's columns

Fix the example so that the document colors' ranges encompass the entire
word.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
pull/3348/head
Remy Suen 2022-10-03 12:12:01 -04:00
parent ab889ff2cc
commit 54a4e45a10
1 changed files with 6 additions and 6 deletions

View File

@ -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
}
}
];