Skip to content

Commit 2e12b8d

Browse files
committed
Rename command from importCodeSearch to importFromCodeSearch
1 parent 49f3f56 commit 2e12b8d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

extensions/ql-vscode/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
"icon": "$(new-folder)"
518518
},
519519
{
520-
"command": "codeQLVariantAnalysisRepositories.importCodeSearch",
520+
"command": "codeQLVariantAnalysisRepositories.importFromCodeSearch",
521521
"title": "Import Repos from GitHub Code Search"
522522
},
523523
{
@@ -966,7 +966,7 @@
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
},
@@ -1307,7 +1307,7 @@
13071307
"when": "false"
13081308
},
13091309
{
1310-
"command": "codeQLVariantAnalysisRepositories.importCodeSearch",
1310+
"command": "codeQLVariantAnalysisRepositories.importFromCodeSearch",
13111311
"when": "false"
13121312
},
13131313
{

extensions/ql-vscode/src/common/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

281281
export type AstCfgCommands = {

extensions/ql-vscode/src/databases/ui/db-panel.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)