File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed
Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import type { AstItem } from "../language-support";
44import type { DbTreeViewItem } from "../databases/ui/db-tree-view-item" ;
55import type { DatabaseItem } from "../databases/local-databases" ;
66import type { QueryHistoryInfo } from "../query-history/query-history-info" ;
7- import type { RepositoriesFilterSortStateWithIds } from "../variant-analysis/shared/variant-analysis-filter-sort" ;
87import type { TestTreeNode } from "../query-testing/test-tree-node" ;
98import type {
109 VariantAnalysis ,
@@ -244,10 +243,6 @@ export type VariantAnalysisCommands = {
244243 scannedRepo : VariantAnalysisScannedRepository ,
245244 variantAnalysisSummary : VariantAnalysis ,
246245 ) => Promise < void > ;
247- "codeQL.copyVariantAnalysisRepoListView" : (
248- variantAnalysisId : number ,
249- filterSort ?: RepositoriesFilterSortStateWithIds ,
250- ) => Promise < void > ;
251246 "codeQL.loadVariantAnalysisRepoResults" : (
252247 variantAnalysisId : number ,
253248 repositoryFullName : string ,
Original file line number Diff line number Diff line change @@ -148,8 +148,6 @@ export class VariantAnalysisManager
148148 return {
149149 "codeQL.autoDownloadVariantAnalysisResult" :
150150 this . enqueueDownload . bind ( this ) ,
151- "codeQL.copyVariantAnalysisRepoListView" :
152- this . copyRepoListToClipboard . bind ( this ) ,
153151 "codeQL.loadVariantAnalysisRepoResults" : this . loadResults . bind ( this ) ,
154152 "codeQL.monitorNewVariantAnalysis" :
155153 this . monitorVariantAnalysis . bind ( this ) ,
Original file line number Diff line number Diff line change @@ -32,4 +32,8 @@ export interface VariantAnalysisViewManager<
3232 variantAnalysisId : number ,
3333 filterSort ?: RepositoriesFilterSortStateWithIds ,
3434 ) : Promise < void > ;
35+ copyRepoListToClipboard (
36+ variantAnalysisId : number ,
37+ filterSort ?: RepositoriesFilterSortStateWithIds ,
38+ ) : Promise < void > ;
3539}
Original file line number Diff line number Diff line change @@ -139,8 +139,7 @@ export class VariantAnalysisView
139139 await this . manager . openQueryText ( this . variantAnalysisId ) ;
140140 break ;
141141 case "copyRepositoryList" :
142- void this . app . commands . execute (
143- "codeQL.copyVariantAnalysisRepoListView" ,
142+ await this . manager . copyRepoListToClipboard (
144143 this . variantAnalysisId ,
145144 msg . filterSort ,
146145 ) ;
You can’t perform that action at this time.
0 commit comments