Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions extensions/ql-vscode/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export function getQlPackLocation(): string | undefined {
}

export async function setQlPackLocation(folder: string | undefined) {
await QL_PACK_LOCATION.updateValue(folder, ConfigurationTarget.Global);
await QL_PACK_LOCATION.updateValue(folder, ConfigurationTarget.Workspace);
}

/**
Expand All @@ -690,7 +690,10 @@ export function getAutogenerateQlPacks(): AutogenerateQLPacks {
}

export async function setAutogenerateQlPacks(choice: AutogenerateQLPacks) {
await AUTOGENERATE_QL_PACKS.updateValue(choice, ConfigurationTarget.Global);
await AUTOGENERATE_QL_PACKS.updateValue(
choice,
ConfigurationTarget.Workspace,
);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ describe("SkeletonQueryWizard", () => {

await wizard.determineStoragePath();

expect(updateValueSpy).toHaveBeenCalledWith(storagePath, 1);
expect(updateValueSpy).toHaveBeenCalledWith(storagePath, 2);
});

describe("when the user is using the codespace template", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ describe("local databases", () => {
await (databaseManager as any).createSkeletonPacks(mockDbItem);

expect(generateSpy).not.toBeCalled();
expect(updateValueSpy).toHaveBeenCalledWith("never", 1);
expect(updateValueSpy).toHaveBeenCalledWith("never", 2);
});

it("should create the skeleton QL pack for the user", async () => {
Expand Down