Convert extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts to call typed commands

This commit is contained in:
Robert
2023-03-23 16:04:17 +00:00
parent fc3bce8d41
commit 7b53c471b6

View File

@@ -6,7 +6,6 @@ import {
} from "./gh-api/gh-api-client";
import {
CancellationToken,
commands,
env,
EventEmitter,
ExtensionContext,
@@ -239,11 +238,11 @@ export class VariantAnalysisManager
`Variant analysis ${processedVariantAnalysis.query.name} submitted for processing`,
);
void commands.executeCommand(
void this.app.commands.execute(
"codeQL.openVariantAnalysisView",
processedVariantAnalysis.id,
);
void commands.executeCommand(
void this.app.commands.execute(
"codeQL.monitorVariantAnalysis",
processedVariantAnalysis,
);
@@ -273,7 +272,7 @@ export class VariantAnalysisManager
this.makeResultDownloadChecker(variantAnalysis),
))
) {
void commands.executeCommand(
void this.app.commands.execute(
"codeQL.monitorVariantAnalysis",
variantAnalysis,
);
@@ -641,7 +640,7 @@ export class VariantAnalysisManager
const actionsWorkflowRunUrl = getActionsWorkflowRunUrl(variantAnalysis);
await commands.executeCommand(
await this.app.commands.execute(
"vscode.open",
Uri.parse(actionsWorkflowRunUrl),
);