Reduce options to "ask" and "never"

And update descriptions for them.
This commit is contained in:
Elena Tanasoiu
2023-05-03 12:14:23 +00:00
parent 42320fcb87
commit 9ecb5035e0
2 changed files with 5 additions and 7 deletions

View File

@@ -351,15 +351,13 @@
"default": "ask",
"enum": [
"ask",
"yes",
"never"
],
"enumDescriptions": [
"Ask each time a new local CodeQL database is added.",
"Always automatically create a QL pack if one does not already exist.",
"Never automatically create a QL pack."
"Ask to create a QL pack when a new CodeQL database is added.",
"Never create a QL pack when a new CodeQL database is added."
],
"description": "Should a QL pack be created when downloading a CodeQL database and a QL pack does not already exist."
"description": "Ask the user to generate a QL pack when a new CodeQL database is downloaded."
}
}
},

View File

@@ -639,14 +639,14 @@ export async function setQlPackLocation(folder: string | undefined) {
}
/**
* Option to turn on/off ability to autogenerate QL packs. The options are "ask", "yes", "never"
* Option to turn on/off ability to autogenerate QL packs. The options are "ask" and "never"
**/
const AUTOGENERATE_QL_PACKS = new Setting(
"autogenerateQlPacks",
CREATE_QUERY_COMMAND,
);
const AutogenerateQLPacksValues = ["ask", "yes", "never"] as const;
const AutogenerateQLPacksValues = ["ask", "never"] as const;
type AutogenerateQLPacks = typeof AutogenerateQLPacksValues[number];
export function getAutogenerateQlPacks(): AutogenerateQLPacks {