Microsoft/monaco-editor
View on GitHubDocumentation of DecorationOptions.minimap.color is misleading - requires hex color, but suggests rgba value
Open
#4178 opened on Sep 16, 2023
bugeditor-corehelp wanted
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
var jsCode = [
'"use strict";',
"function Person(age) {",
" if (age) {",
" this.age = age;",
" }",
"}",
"Person.prototype.getAge = function () {",
" return this.age;",
"};",
].join("\n");
var editor = monaco.editor.create(document.getElementById("container"), {
value: jsCode,
language: "javascript",
minimap: { enabled: true },
});
var decorations = editor.createDecorationsCollection([
{
range: new monaco.Range(3, 1, 5, 1),
options: {
isWholeLine: true,
className: "myLineDecoration",
minimap: {
color: "rgba(67, 201, 249, 0.8)",
position: monaco.editor.MinimapPosition.Inline,
}
},
}
]);
.myLineDecoration {
background: rgba(67, 201, 249, 0.8);
}
Reproduction Steps
No response
Actual (Problematic) Behavior
Expected Behavior
show blue color.
Additional Context
No response