Don't open variant analysis view when running a model evaluation run (#3424)
This commit is contained in:
@@ -60,6 +60,7 @@ export class ModelEvaluator extends DisposableObject {
|
||||
qlPack,
|
||||
progress,
|
||||
token,
|
||||
false,
|
||||
);
|
||||
} catch (e) {
|
||||
this.modelingStore.updateModelEvaluationRun(this.dbItem, undefined);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user