Skip to content

Commit

Permalink
Try a different way to set saveBeforeStart
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartol committed Jul 3, 2023
1 parent cb3939e commit ea7b24a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { CUSTOM_CODEQL_PATH_SETTING } from "../../src/config";
import {
CUSTOM_CODEQL_PATH_SETTING,
VSCODE_SAVE_BEFORE_START_SETTING,
} from "../../src/config";
import { ConfigurationTarget, env } from "vscode";
import { beforeEachAction as testConfigBeforeEachAction } from "./test-config";
import * as tmp from "tmp";
Expand Down Expand Up @@ -45,6 +48,11 @@ export async function beforeAllAction() {
export async function beforeEachAction() {
jest.spyOn(env, "openExternal").mockResolvedValue(false);

await VSCODE_SAVE_BEFORE_START_SETTING.updateValue(
"nonUntitledEditorsInActiveGroup",
ConfigurationTarget.Workspace,
);

await testConfigBeforeEachAction();

await CUSTOM_CODEQL_PATH_SETTING.updateValue(
Expand Down

0 comments on commit ea7b24a

Please sign in to comment.