Reduce options to "ask" and "never"
And update descriptions for them.
This commit is contained in:
@@ -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."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user