Don't open variant analysis view when running a model evaluation run (#3424)

This commit is contained in:
Charis Kyriakou
2024-02-29 13:38:21 +00:00
committed by GitHub
parent fc5d462dc5
commit 1ac92ad79c
2 changed files with 9 additions and 4 deletions

View File

@@ -60,6 +60,7 @@ export class ModelEvaluator extends DisposableObject {
qlPack,
progress,
token,
false,
);
} catch (e) {
this.modelingStore.updateModelEvaluationRun(this.dbItem, undefined);

View File

@@ -300,6 +300,7 @@ export class VariantAnalysisManager
qlPackDetails: QlPackDetails,
progress: ProgressCallback,
token: CancellationToken,
openViewAfterSubmission = true,
): Promise<number | undefined> {
await saveBeforeStart();
@@ -399,10 +400,13 @@ export class VariantAnalysisManager
`Variant analysis ${mappedVariantAnalysis.query.name} submitted for processing`,
);
void this.app.commands.execute(
"codeQL.openVariantAnalysisView",
mappedVariantAnalysis.id,
);
if (openViewAfterSubmission) {
void this.app.commands.execute(
"codeQL.openVariantAnalysisView",
mappedVariantAnalysis.id,
);
}
void this.app.commands.execute(
"codeQL.monitorNewVariantAnalysis",
mappedVariantAnalysis,