Skip to content

Commit 4e2b26f

Browse files
committed
Rename codeQL.createQuery.folder -> codeQL.createQuery.qlPackLocation
1 parent c877f6c commit 4e2b26f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

extensions/ql-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
"default": false,
342342
"description": "Allow database to be downloaded via HTTP. Warning: enabling this option will allow downloading from insecure servers."
343343
},
344-
"codeQL.createQuery.folder": {
344+
"codeQL.createQuery.qlPackLocation": {
345345
"type": "string",
346346
"default": "",
347347
"patternErrorMessage": "Please enter a valid folder",

extensions/ql-vscode/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ export function allowHttp(): boolean {
624624
* The name of the folder where we want to create skeleton wizard QL packs.
625625
**/
626626
const SKELETON_WIZARD_FOLDER = new Setting(
627-
"folder",
627+
"qlPackLocation",
628628
new Setting("createQuery", ROOT_SETTING),
629629
);
630630

extensions/ql-vscode/test/vscode-tests/cli-integration/skeleton-query-wizard.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ describe("SkeletonQueryWizard", () => {
412412

413413
originalValue = workspace
414414
.getConfiguration("codeQL.createQuery")
415-
.get("folder");
415+
.get("qlPackLocation");
416416

417417
// Set isCodespacesTemplate to true to indicate we are in the codespace template
418418
await workspace
@@ -423,7 +423,7 @@ describe("SkeletonQueryWizard", () => {
423423
afterEach(async () => {
424424
await workspace
425425
.getConfiguration("codeQL.createQuery")
426-
.update("folder", originalValue);
426+
.update("qlPackLocation", originalValue);
427427

428428
await workspace
429429
.getConfiguration("codeQL")
@@ -449,16 +449,16 @@ describe("SkeletonQueryWizard", () => {
449449

450450
originalValue = workspace
451451
.getConfiguration("codeQL.createQuery")
452-
.get("folder");
452+
.get("qlPackLocation");
453453
await workspace
454454
.getConfiguration("codeQL.createQuery")
455-
.update("folder", storedPath);
455+
.update("qlPackLocation", storedPath);
456456
});
457457

458458
afterEach(async () => {
459459
await workspace
460460
.getConfiguration("codeQL.createQuery")
461-
.update("folder", originalValue);
461+
.update("qlPackLocation", originalValue);
462462
});
463463

464464
it("should return it and not prompt the user", async () => {
@@ -478,16 +478,16 @@ describe("SkeletonQueryWizard", () => {
478478

479479
originalValue = workspace
480480
.getConfiguration("codeQL.createQuery")
481-
.get("folder");
481+
.get("qlPackLocation");
482482
await workspace
483483
.getConfiguration("codeQL.createQuery")
484-
.update("folder", storedPath);
484+
.update("qlPackLocation", storedPath);
485485
});
486486

487487
afterEach(async () => {
488488
await workspace
489489
.getConfiguration("codeQL.createQuery")
490-
.update("folder", originalValue);
490+
.update("qlPackLocation", originalValue);
491491
});
492492

493493
it("should prompt the user for to provide a new folder name", async () => {

0 commit comments

Comments
 (0)