redhat-developer / redhat-developer/vscode-yaml
Autocomplete: is it possible to sort enums/defaults above tags in the suggestion list?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 829
- Forks
- 260
- Avg merge
- 5h 43m
- Merged PRs (30d)
- 1
Description
Summary
I use JSON Schema to specify my YAML structure, and frequently use enum types as values. This allows VSCode to populate my autocomplete suggestions with the list of possible values for a given field.
However, the suggestions always show a list of a dozen or so tags first, so the values I actually want are always at the bottom of the suggestion list.
Is there a way to have this extension sort its autocompletes such that the tags are listed after the enums/defaults?
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
No source file, test, or entry point is named. Start by locating the VS Code YAML autocomplete handling for JSON Schema enum/default values and tags; done means enum and default suggestions appear before tag suggestions in the list, with regression coverage for that ordering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode, yaml
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100