Rename skeletonWizard setting to createQuery

This commit is contained in:
Elena Tanasoiu
2023-04-18 15:27:58 +00:00
parent 57d48a7b04
commit e0bf1ca40f
2 changed files with 8 additions and 8 deletions

View File

@@ -625,7 +625,7 @@ export function allowHttp(): boolean {
**/
const SKELETON_WIZARD_FOLDER = new Setting(
"folder",
new Setting("skeletonWizard", ROOT_SETTING),
new Setting("createQuery", ROOT_SETTING),
);
export function getSkeletonWizardFolder(): string | undefined {

View File

@@ -466,7 +466,7 @@ describe("SkeletonQueryWizard", () => {
ensureDirSync(storedPath);
originalValue = workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.get("folder");
// Set isCodespacesTemplate to true to indicate we are in the codespace template
@@ -499,16 +499,16 @@ describe("SkeletonQueryWizard", () => {
ensureDirSync(storedPath);
originalValue = workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.get("folder");
await workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.update("folder", storedPath);
});
afterEach(async () => {
await workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.update("folder", originalValue);
});
@@ -528,16 +528,16 @@ describe("SkeletonQueryWizard", () => {
storedPath = join(dir.name, "this-folder-does-not-exist");
originalValue = workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.get("folder");
await workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.update("folder", storedPath);
});
afterEach(async () => {
await workspace
.getConfiguration("codeQL.skeletonWizard")
.getConfiguration("codeQL.createQuery")
.update("folder", originalValue);
});