Skip to content

Commit 9ecb503

Browse files
committed
Reduce options to "ask" and "never"
And update descriptions for them.
1 parent 42320fc commit 9ecb503

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

extensions/ql-vscode/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,13 @@
351351
"default": "ask",
352352
"enum": [
353353
"ask",
354-
"yes",
355354
"never"
356355
],
357356
"enumDescriptions": [
358-
"Ask each time a new local CodeQL database is added.",
359-
"Always automatically create a QL pack if one does not already exist.",
360-
"Never automatically create a QL pack."
357+
"Ask to create a QL pack when a new CodeQL database is added.",
358+
"Never create a QL pack when a new CodeQL database is added."
361359
],
362-
"description": "Should a QL pack be created when downloading a CodeQL database and a QL pack does not already exist."
360+
"description": "Ask the user to generate a QL pack when a new CodeQL database is downloaded."
363361
}
364362
}
365363
},

extensions/ql-vscode/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,14 +639,14 @@ export async function setQlPackLocation(folder: string | undefined) {
639639
}
640640

641641
/**
642-
* Option to turn on/off ability to autogenerate QL packs. The options are "ask", "yes", "never"
642+
* Option to turn on/off ability to autogenerate QL packs. The options are "ask" and "never"
643643
**/
644644
const AUTOGENERATE_QL_PACKS = new Setting(
645645
"autogenerateQlPacks",
646646
CREATE_QUERY_COMMAND,
647647
);
648648

649-
const AutogenerateQLPacksValues = ["ask", "yes", "never"] as const;
649+
const AutogenerateQLPacksValues = ["ask", "never"] as const;
650650
type AutogenerateQLPacks = typeof AutogenerateQLPacksValues[number];
651651

652652
export function getAutogenerateQlPacks(): AutogenerateQLPacks {

0 commit comments

Comments
 (0)