Rename codeQL.autogenerateQlPacks -> codeQL.createQuery.autogenerateQlPacks

This commit is contained in:
Elena Tanasoiu
2023-04-27 10:27:55 +00:00
parent 9aeb520841
commit 6034105462
3 changed files with 7 additions and 4 deletions

View File

@@ -347,7 +347,7 @@
"patternErrorMessage": "Please enter a valid folder",
"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."
},
"codeQL.autogenerateQlPacks": {
"codeQL.createQuery.autogenerateQlPacks": {
"type": "string",
"default": "",
"patternErrorMessage": "Please choose between 'Yes', 'No' and 'No, and never ask me again'",

View File

@@ -639,7 +639,10 @@ export async function setQlPackLocation(folder: string | undefined) {
/**
* Option to turn on/off ability to autogenerate QL packs. Values are "Yes" / "No" / "Never ask again"
**/
const AUTOGENERATE_QL_PACKS = new Setting("autogenerateQlPacks", ROOT_SETTING);
const AUTOGENERATE_QL_PACKS = new Setting(
"autogenerateQlPacks",
new Setting("createQuery", ROOT_SETTING),
);
export function getAutogenerateQlPacks(): string | undefined {
return AUTOGENERATE_QL_PACKS.getValue<string>() || undefined;

View File

@@ -650,13 +650,13 @@ describe("local databases", () => {
beforeEach(() => {
originalValue = workspace
.getConfiguration("codeQL")
.getConfiguration("codeQL.createQuery")
.get("autogenerateQlPacks");
});
afterEach(async () => {
await workspace
.getConfiguration("codeQL")
.getConfiguration("codeQL.createQuery")
.update("autogenerateQlPacks", originalValue);
});