Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support enum arrays in settings UI #95186

Closed
znck opened this issue Apr 14, 2020 · 1 comment
Closed

Support enum arrays in settings UI #95186

znck opened this issue Apr 14, 2020 · 1 comment
Assignees
Labels
settings-editor VS Code settings editor issues

Comments

@znck
Copy link
Contributor

znck commented Apr 14, 2020

A string array type in settings UI is already supported.

image

I request enum arrays are supported in a similar manner. Example schema from znck.grammarly extension:

 { 
    "grammarly.emotions": {
          "markdownDescription": "**Experimental.** How do you want to sound?",
          "scope": "resource",
          "type": "array",
          "items": {
            "enum": [
              "neutral",
              "confident",
              "joyful",
              "optimistic",
              "respectful",
              "urgent",
              "friendly",
              "analytical"
            ],
            "enumDescriptions": [
              "😐 Neutral",
              "🤝 Confident",
              "🙂 Joyful",
              "✌️ Optimistic",
              "🤗 Friendly",
              "⏰ Urgent",
              "📊 Analytical",
              "🙌 Respectful"
            ]
          },
          "default": []
        },
}
@sandy081 sandy081 assigned roblourens and unassigned sandy081 Apr 14, 2020
@roblourens roblourens added feature-request Request for new features or functionality settings-editor VS Code settings editor issues labels Apr 14, 2020
@roblourens roblourens added this to the Backlog milestone Apr 14, 2020
@roblourens
Copy link
Member

Duplicate of #77458

@roblourens roblourens marked this as a duplicate of #77458 May 17, 2020
@roblourens roblourens removed the feature-request Request for new features or functionality label May 17, 2020
@roblourens roblourens removed this from the Backlog milestone May 17, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
settings-editor VS Code settings editor issues
Projects
None yet
Development

No branches or pull requests

3 participants