File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed
Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import type { CommandManager } from "../packages/commands";
22import type { Uri } from "vscode" ;
33import type { DbTreeViewItem } from "../databases/ui/db-tree-view-item" ;
44import type { QueryHistoryInfo } from "../query-history/query-history-info" ;
5+ import { RepositoriesFilterSortStateWithIds } from "../pure/variant-analysis-filter-sort" ;
6+ import { VariantAnalysis } from "../variant-analysis/shared/variant-analysis" ;
57
68// A command function matching the signature that VS Code calls when
79// a command on a selection is invoked.
@@ -62,6 +64,10 @@ export type QueryHistoryCommands = {
6264
6365// Commands tied to variant analysis
6466export type VariantAnalysisCommands = {
67+ "codeQL.copyVariantAnalysisRepoList" : (
68+ variantAnalysisId : number ,
69+ filterSort ?: RepositoriesFilterSortStateWithIds ,
70+ ) => Promise < void > ;
6571 "codeQL.openVariantAnalysisLogs" : (
6672 variantAnalysisId : number ,
6773 ) => Promise < void > ;
Original file line number Diff line number Diff line change @@ -1100,21 +1100,6 @@ async function activateWithInstalledDistribution(
11001100 app . commands . register ( commandName as keyof AllCommands , command ) ;
11011101 }
11021102
1103- ctx . subscriptions . push (
1104- commandRunner (
1105- "codeQL.copyVariantAnalysisRepoList" ,
1106- async (
1107- variantAnalysisId : number ,
1108- filterSort ?: RepositoriesFilterSortStateWithIds ,
1109- ) => {
1110- await variantAnalysisManager . copyRepoListToClipboard (
1111- variantAnalysisId ,
1112- filterSort ,
1113- ) ;
1114- } ,
1115- ) ,
1116- ) ;
1117-
11181103 ctx . subscriptions . push (
11191104 commandRunner (
11201105 "codeQL.monitorVariantAnalysis" ,
Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ export class VariantAnalysisManager
131131
132132 getCommands ( ) : VariantAnalysisCommands {
133133 return {
134+ "codeQL.copyVariantAnalysisRepoList" :
135+ this . copyRepoListToClipboard . bind ( this ) ,
134136 "codeQL.openVariantAnalysisLogs" : this . openVariantAnalysisLogs . bind ( this ) ,
135137 "codeQL.runVariantAnalysis" :
136138 this . runVariantAnalysisFromCommand . bind ( this ) ,
You can’t perform that action at this time.
0 commit comments