microsoft / microsoft/monaco-editor
[Feature Request] Show decorations in collapsed regions
Open
Nobody has claimed this yet.
feature-request
folding
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Context
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
I want to ensure that some decorators are visible in the editor even if the code regions are collapsed.
It looks like VS Code has this ability, but it isn't surfaced by Monaco.
Would be a helpful option to have available.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the linked VS Code model.ts implementation with Monaco's folding and decoration entry points; the payload does not name corresponding Monaco files or tests. Done means Monaco exposes a defined option that keeps selected decorations visible when code regions are collapsed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100