File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,10 @@ export interface OpenQueryTextMessage {
472472 t : 'openQueryText' ;
473473}
474474
475+ export interface CopyRepositoryListMessage {
476+ t : 'copyRepositoryList' ;
477+ }
478+
475479export interface OpenLogsMessage {
476480 t : 'openLogs' ;
477481}
@@ -490,5 +494,6 @@ export type FromVariantAnalysisMessage =
490494 | RequestRepositoryResultsMessage
491495 | OpenQueryFileMessage
492496 | OpenQueryTextMessage
497+ | CopyRepositoryListMessage
493498 | OpenLogsMessage
494499 | CancelVariantAnalysisMessage ;
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ export class VariantAnalysisView extends AbstractWebview<ToVariantAnalysisMessag
103103 case 'openQueryText' :
104104 await this . openQueryText ( ) ;
105105 break ;
106+ case 'copyRepositoryList' :
107+ void commands . executeCommand ( 'codeQL.copyVariantAnalysisRepoList' , this . variantAnalysisId ) ;
108+ break ;
106109 case 'openLogs' :
107110 await this . openLogs ( ) ;
108111 break ;
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ const stopQuery = () => {
3636 } ) ;
3737} ;
3838
39+ const copyRepositoryList = ( ) => {
40+ vscode . postMessage ( {
41+ t : 'copyRepositoryList' ,
42+ } ) ;
43+ } ;
44+
3945const openLogs = ( ) => {
4046 vscode . postMessage ( {
4147 t : 'openLogs' ,
@@ -95,7 +101,7 @@ export function VariantAnalysis({
95101 onOpenQueryFileClick = { openQueryFile }
96102 onViewQueryTextClick = { openQueryText }
97103 onStopQueryClick = { stopQuery }
98- onCopyRepositoryListClick = { ( ) => console . log ( 'Copy repository list' ) }
104+ onCopyRepositoryListClick = { copyRepositoryList }
99105 onExportResultsClick = { ( ) => console . log ( 'Export results' ) }
100106 onViewLogsClick = { openLogs }
101107 />
You can’t perform that action at this time.
0 commit comments