Option to disable dropdown options automatic optimization
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 641
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 57
Description
Is your feature request related to a problem? Please describe.
When dropdown options have commonalities, the commonalities are automatically moved out of the dropdown and into the block text. This creates a discrepancy between what you see in the dropdown and what you see in the Jacdac role manager. In the depicted example the options should be led ring 1, led ring 2, led ring 3, led ring 4. Instead they are 1, 2, 3, 4.
Describe the solution you'd like
I would like to be able to turn off this optimization with a jsdoc block comment.
Describe alternatives you've considered
We can use ledRing1, but this apparently goes against micro:bit standards for approved extensions.
Additional context
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 locating the TypeScript code that automatically optimizes common text in dropdown options and review how dropdown labels are produced for the editor and Jacdac role manager. Then trace how JSDoc block comments are parsed or exposed, and define completion as an opt-out that preserves the full option text in both views.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100