File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 517517 "icon" : " $(new-folder)"
518518 },
519519 {
520- "command" : " codeQLVariantAnalysisRepositories.importCodeSearch " ,
520+ "command" : " codeQLVariantAnalysisRepositories.importFromCodeSearch " ,
521521 "title" : " Import Repos from GitHub Code Search"
522522 },
523523 {
966966 "group" : " 2_qlContextMenu@1"
967967 },
968968 {
969- "command" : " codeQLVariantAnalysisRepositories.importCodeSearch " ,
969+ "command" : " codeQLVariantAnalysisRepositories.importFromCodeSearch " ,
970970 "when" : " view == codeQLVariantAnalysisRepositories && viewItem =~ /canImportCodeSearch/" ,
971971 "group" : " 2_qlContextMenu@1"
972972 },
13071307 "when" : " false"
13081308 },
13091309 {
1310- "command" : " codeQLVariantAnalysisRepositories.importCodeSearch " ,
1310+ "command" : " codeQLVariantAnalysisRepositories.importFromCodeSearch " ,
13111311 "when" : " false"
13121312 },
13131313 {
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ export type DatabasePanelCommands = {
275275 "codeQLVariantAnalysisRepositories.openOnGitHubContextMenu" : TreeViewContextSingleSelectionCommandFunction < DbTreeViewItem > ;
276276 "codeQLVariantAnalysisRepositories.renameItemContextMenu" : TreeViewContextSingleSelectionCommandFunction < DbTreeViewItem > ;
277277 "codeQLVariantAnalysisRepositories.removeItemContextMenu" : TreeViewContextSingleSelectionCommandFunction < DbTreeViewItem > ;
278- "codeQLVariantAnalysisRepositories.importCodeSearch " : TreeViewContextSingleSelectionCommandFunction < DbTreeViewItem > ;
278+ "codeQLVariantAnalysisRepositories.importFromCodeSearch " : TreeViewContextSingleSelectionCommandFunction < DbTreeViewItem > ;
279279} ;
280280
281281export type AstCfgCommands = {
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ export class DbPanel extends DisposableObject {
103103 this . renameItem . bind ( this ) ,
104104 "codeQLVariantAnalysisRepositories.removeItemContextMenu" :
105105 this . removeItem . bind ( this ) ,
106- "codeQLVariantAnalysisRepositories.importCodeSearch " :
107- this . importCodeSearch . bind ( this ) ,
106+ "codeQLVariantAnalysisRepositories.importFromCodeSearch " :
107+ this . importFromCodeSearch . bind ( this ) ,
108108 } ;
109109 }
110110
@@ -342,7 +342,9 @@ export class DbPanel extends DisposableObject {
342342 await this . dbManager . removeDbItem ( treeViewItem . dbItem ) ;
343343 }
344344
345- private async importCodeSearch ( treeViewItem : DbTreeViewItem ) : Promise < void > {
345+ private async importFromCodeSearch (
346+ treeViewItem : DbTreeViewItem ,
347+ ) : Promise < void > {
346348 if ( treeViewItem . dbItem ?. kind !== DbItemKind . RemoteUserDefinedList ) {
347349 throw new Error ( "Please select a valid list to add code search results." ) ;
348350 }
You can’t perform that action at this time.
0 commit comments