Add codeQL.runVariantAnalysisPublishedPack command
This commit is contained in:
@@ -549,6 +549,10 @@
|
||||
"command": "codeQL.runVariantAnalysisContextExplorer",
|
||||
"title": "CodeQL: Run Variant Analysis"
|
||||
},
|
||||
{
|
||||
"command": "codeQL.runVariantAnalysisPublishedPack",
|
||||
"title": "CodeQL: Run Variant Analysis against published pack"
|
||||
},
|
||||
{
|
||||
"command": "codeQL.exportSelectedVariantAnalysisResults",
|
||||
"title": "CodeQL: Export Variant Analysis Results"
|
||||
@@ -1410,6 +1414,10 @@
|
||||
"command": "codeQL.runVariantAnalysisContextExplorer",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "codeQL.runVariantAnalysisPublishedPack",
|
||||
"when": "config.codeQL.canary && config.codeQL.variantAnalysis.multiQuery"
|
||||
},
|
||||
{
|
||||
"command": "codeQL.runVariantAnalysisContextEditor",
|
||||
"when": "false"
|
||||
|
||||
@@ -279,6 +279,7 @@ export type VariantAnalysisCommands = {
|
||||
"codeQL.runVariantAnalysisContextEditor": (uri?: Uri) => Promise<void>;
|
||||
"codeQL.runVariantAnalysisContextExplorer": ExplorerSelectionCommandFunction<Uri>;
|
||||
"codeQLQueries.runVariantAnalysisContextMenu": TreeViewContextSingleSelectionCommandFunction<QueryTreeViewItem>;
|
||||
"codeQL.runVariantAnalysisPublishedPack": () => Promise<void>;
|
||||
};
|
||||
|
||||
export type DatabasePanelCommands = {
|
||||
|
||||
@@ -175,6 +175,8 @@ export class VariantAnalysisManager
|
||||
),
|
||||
"codeQLQueries.runVariantAnalysisContextMenu":
|
||||
this.runVariantAnalysisFromQueriesPanel.bind(this),
|
||||
"codeQL.runVariantAnalysisPublishedPack":
|
||||
this.runVariantAnalysisFromPublishedPack.bind(this),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -214,6 +216,10 @@ export class VariantAnalysisManager
|
||||
}
|
||||
}
|
||||
|
||||
private async runVariantAnalysisFromPublishedPack(): Promise<void> {
|
||||
throw new Error("Command not yet implemented");
|
||||
}
|
||||
|
||||
public async runVariantAnalysis(
|
||||
uri: Uri | undefined,
|
||||
progress: ProgressCallback,
|
||||
|
||||
Reference in New Issue
Block a user