From 59fa71999ecf3035abdc836410b076f397de4c42 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Thu, 2 Jun 2022 16:27:06 +0200 Subject: [PATCH] Git - branch name generation setting feedback (#151106) --- extensions/git/package.json | 14 +++++++++++++- extensions/git/package.nls.json | 6 +++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/extensions/git/package.json b/extensions/git/package.json index 8f96b80fbe1..ef401886f02 100644 --- a/extensions/git/package.json +++ b/extensions/git/package.json @@ -1913,7 +1913,19 @@ "type": "array", "markdownDescription": "%config.branchRandomNameDictionary%", "items": { - "type": "string" + "type": "string", + "enum": [ + "adjectives", + "animals", + "colors", + "numbers" + ], + "enumDescriptions": [ + "%config.branchRandomNameDictionary.adjectives%", + "%config.branchRandomNameDictionary.animals%", + "%config.branchRandomNameDictionary.colors%", + "%config.branchRandomNameDictionary.numbers%" + ] }, "default": [ "adjectives", diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json index e1a8c6a9faf..b729f821b61 100644 --- a/extensions/git/package.nls.json +++ b/extensions/git/package.nls.json @@ -126,7 +126,11 @@ "config.branchProtectionPrompt.alwaysCommit": "Always commit changes to the protected branch.", "config.branchProtectionPrompt.alwaysCommitToNewBranch": "Always commit changes to a new branch.", "config.branchProtectionPrompt.alwaysPrompt": "Always prompt before changes are committed to a protected branch.", - "config.branchRandomNameDictionary": "List of dictionaries used when the branch name that is randomly generated. Supported values: `adjectives`, `animals`, `colors`, `numbers`.", + "config.branchRandomNameDictionary": "List of dictionaries used for the randomly generated branch name. Each value represents the dictionary used to generate the segment of the branch name. Supported dictionaries: `adjectives`, `animals`, `colors` and `numbers`.", + "config.branchRandomNameDictionary.adjectives": "A random adjective", + "config.branchRandomNameDictionary.animals": "A random animal name", + "config.branchRandomNameDictionary.colors": "A random color name", + "config.branchRandomNameDictionary.numbers": "A random number between 100 and 999", "config.branchRandomNameEnable": "Controls whether a random name is generated when creating a new branch.", "config.branchValidationRegex": "A regular expression to validate new branch names.", "config.branchWhitespaceChar": "The character to replace whitespace in new branch names, and to separate segments of a randomly generated branch name.",