redhat-developer / redhat-developer/vscode-yaml

Autocomplete: is it possible to sort enums/defaults above tags in the suggestion list?

Open
#778 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.