Skip to content

Commit 6034105

Browse files
committed
Rename codeQL.autogenerateQlPacks -> codeQL.createQuery.autogenerateQlPacks
1 parent 9aeb520 commit 6034105

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

extensions/ql-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@
347347
"patternErrorMessage": "Please enter a valid folder",
348348
"markdownDescription": "The name of the folder where we want to create queries and query packs via the \"CodeQL: Create Query\" command. The folder should exist."
349349
},
350-
"codeQL.autogenerateQlPacks": {
350+
"codeQL.createQuery.autogenerateQlPacks": {
351351
"type": "string",
352352
"default": "",
353353
"patternErrorMessage": "Please choose between 'Yes', 'No' and 'No, and never ask me again'",

extensions/ql-vscode/src/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,10 @@ export async function setQlPackLocation(folder: string | undefined) {
639639
/**
640640
* Option to turn on/off ability to autogenerate QL packs. Values are "Yes" / "No" / "Never ask again"
641641
**/
642-
const AUTOGENERATE_QL_PACKS = new Setting("autogenerateQlPacks", ROOT_SETTING);
642+
const AUTOGENERATE_QL_PACKS = new Setting(
643+
"autogenerateQlPacks",
644+
new Setting("createQuery", ROOT_SETTING),
645+
);
643646

644647
export function getAutogenerateQlPacks(): string | undefined {
645648
return AUTOGENERATE_QL_PACKS.getValue<string>() || undefined;

extensions/ql-vscode/test/vscode-tests/minimal-workspace/local-databases.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,13 +650,13 @@ describe("local databases", () => {
650650

651651
beforeEach(() => {
652652
originalValue = workspace
653-
.getConfiguration("codeQL")
653+
.getConfiguration("codeQL.createQuery")
654654
.get("autogenerateQlPacks");
655655
});
656656

657657
afterEach(async () => {
658658
await workspace
659-
.getConfiguration("codeQL")
659+
.getConfiguration("codeQL.createQuery")
660660
.update("autogenerateQlPacks", originalValue);
661661
});
662662

0 commit comments

Comments
 (0)