Skip to content

Commit 695cf34

Browse files
committed
Do not make model evaluator cancellable
1 parent d56f717 commit 695cf34

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

extensions/ql-vscode/src/model-editor/model-evaluator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import type { CancellationToken } from "vscode";
1818
import { CancellationTokenSource } from "vscode";
1919
import type { QlPackDetails } from "../variant-analysis/ql-pack-details";
2020
import type { App } from "../common/app";
21-
import { MultiCancellationToken } from "../common/vscode/multi-cancellation-token";
2221
import { ModelAlertsView } from "./model-alerts/model-alerts-view";
2322

2423
export class ModelEvaluator extends DisposableObject {
@@ -69,15 +68,15 @@ export class ModelEvaluator extends DisposableObject {
6968

7069
// Submit variant analysis and monitor progress
7170
return withProgress(
72-
(progress, token) =>
71+
(progress) =>
7372
this.runVariantAnalysis(
7473
qlPack,
7574
progress,
76-
new MultiCancellationToken(token, this.cancellationSource.token),
75+
this.cancellationSource.token,
7776
),
7877
{
7978
title: "Run model evaluation",
80-
cancellable: true,
79+
cancellable: false,
8180
},
8281
);
8382
}

0 commit comments

Comments
 (0)