Convert extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts to call typed commands
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user