Rename codeQL.autogenerateQlPacks -> codeQL.createQuery.autogenerateQlPacks
This commit is contained in:
@@ -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'",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user