Skip to content

Commit 7b53c47

Browse files
Convert extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts to call typed commands
1 parent fc3bce8 commit 7b53c47

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
} from "./gh-api/gh-api-client";
77
import {
88
CancellationToken,
9-
commands,
109
env,
1110
EventEmitter,
1211
ExtensionContext,
@@ -239,11 +238,11 @@ export class VariantAnalysisManager
239238
`Variant analysis ${processedVariantAnalysis.query.name} submitted for processing`,
240239
);
241240

242-
void commands.executeCommand(
241+
void this.app.commands.execute(
243242
"codeQL.openVariantAnalysisView",
244243
processedVariantAnalysis.id,
245244
);
246-
void commands.executeCommand(
245+
void this.app.commands.execute(
247246
"codeQL.monitorVariantAnalysis",
248247
processedVariantAnalysis,
249248
);
@@ -273,7 +272,7 @@ export class VariantAnalysisManager
273272
this.makeResultDownloadChecker(variantAnalysis),
274273
))
275274
) {
276-
void commands.executeCommand(
275+
void this.app.commands.execute(
277276
"codeQL.monitorVariantAnalysis",
278277
variantAnalysis,
279278
);
@@ -641,7 +640,7 @@ export class VariantAnalysisManager
641640

642641
const actionsWorkflowRunUrl = getActionsWorkflowRunUrl(variantAnalysis);
643642

644-
await commands.executeCommand(
643+
await this.app.commands.execute(
645644
"vscode.open",
646645
Uri.parse(actionsWorkflowRunUrl),
647646
);

0 commit comments

Comments
 (0)