monaco-editor
monaco-editor copied to clipboard
when i use deltaDecorations,Range not Effect[Bug]
Reproducible in vscode.dev or in VS Code Desktop?
- [X] 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 Code
const model = editor.getModel()
const rangeList = [{
range: new monaco.Range(5, 1, 5, 1),
options: {
isWholeLine: true,
linesDecorationsClassName: styles.myLineDecoration,
overviewRuler: { position: 1, color: 'lightblue', darkColor: 'white' },
minimap: { position: 1 }
}
}]
model.modified.deltaDecorations([], rangeList)
Actual Behavior
Now all lines have decoration,and each line is added with the class

Expected Behavior
I want only fifth line has decoration
Additional Context
what should i do, can you help me?
Your example does not work. Can you update it? Thanks!
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!