Use saveBeforeStart setting when running a variant analysis
This will respect the user's `saveBeforeStart` setting when running a variant analysis. This re-uses the existing `saveBeforeStart` function that is used when running local queries. The default behavior if the setting is not set is to save all open named files.
This commit is contained in:
@@ -42,7 +42,7 @@ import {
|
|||||||
processVariantAnalysisRepositoryTask,
|
processVariantAnalysisRepositoryTask,
|
||||||
} from "./variant-analysis-processor";
|
} from "./variant-analysis-processor";
|
||||||
import PQueue from "p-queue";
|
import PQueue from "p-queue";
|
||||||
import { createTimestampFile } from "../run-queries-shared";
|
import { createTimestampFile, saveBeforeStart } from "../run-queries-shared";
|
||||||
import { readFile, remove, pathExists } from "fs-extra";
|
import { readFile, remove, pathExists } from "fs-extra";
|
||||||
import { EOL } from "os";
|
import { EOL } from "os";
|
||||||
import { cancelVariantAnalysis } from "./gh-api/gh-actions-api-client";
|
import { cancelVariantAnalysis } from "./gh-api/gh-actions-api-client";
|
||||||
@@ -199,6 +199,8 @@ export class VariantAnalysisManager
|
|||||||
progress: ProgressCallback,
|
progress: ProgressCallback,
|
||||||
token: CancellationToken,
|
token: CancellationToken,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
|
await saveBeforeStart();
|
||||||
|
|
||||||
progress({
|
progress({
|
||||||
maxStep: 5,
|
maxStep: 5,
|
||||||
step: 0,
|
step: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user