Rename codeQL.createQuery.folder -> codeQL.createQuery.qlPackLocation

This commit is contained in:
Elena Tanasoiu
2023-04-27 09:49:52 +00:00
parent c877f6cc60
commit 4e2b26f285
3 changed files with 10 additions and 10 deletions

View File

@@ -341,7 +341,7 @@
"default": false,
"description": "Allow database to be downloaded via HTTP. Warning: enabling this option will allow downloading from insecure servers."
},
"codeQL.createQuery.folder": {
"codeQL.createQuery.qlPackLocation": {
"type": "string",
"default": "",
"patternErrorMessage": "Please enter a valid folder",

View File

@@ -624,7 +624,7 @@ export function allowHttp(): boolean {
* The name of the folder where we want to create skeleton wizard QL packs.
**/
const SKELETON_WIZARD_FOLDER = new Setting(
"folder",
"qlPackLocation",
new Setting("createQuery", ROOT_SETTING),
);

View File

@@ -412,7 +412,7 @@ describe("SkeletonQueryWizard", () => {
originalValue = workspace
.getConfiguration("codeQL.createQuery")
.get("folder");
.get("qlPackLocation");
// Set isCodespacesTemplate to true to indicate we are in the codespace template
await workspace
@@ -423,7 +423,7 @@ describe("SkeletonQueryWizard", () => {
afterEach(async () => {
await workspace
.getConfiguration("codeQL.createQuery")
.update("folder", originalValue);
.update("qlPackLocation", originalValue);
await workspace
.getConfiguration("codeQL")
@@ -449,16 +449,16 @@ describe("SkeletonQueryWizard", () => {
originalValue = workspace
.getConfiguration("codeQL.createQuery")
.get("folder");
.get("qlPackLocation");
await workspace
.getConfiguration("codeQL.createQuery")
.update("folder", storedPath);
.update("qlPackLocation", storedPath);
});
afterEach(async () => {
await workspace
.getConfiguration("codeQL.createQuery")
.update("folder", originalValue);
.update("qlPackLocation", originalValue);
});
it("should return it and not prompt the user", async () => {
@@ -478,16 +478,16 @@ describe("SkeletonQueryWizard", () => {
originalValue = workspace
.getConfiguration("codeQL.createQuery")
.get("folder");
.get("qlPackLocation");
await workspace
.getConfiguration("codeQL.createQuery")
.update("folder", storedPath);
.update("qlPackLocation", storedPath);
});
afterEach(async () => {
await workspace
.getConfiguration("codeQL.createQuery")
.update("folder", originalValue);
.update("qlPackLocation", originalValue);
});
it("should prompt the user for to provide a new folder name", async () => {