@@ -63,27 +63,38 @@ export type QueryHistoryCommands = {
6363
6464// Commands used for the local databases panel
6565export type LocalDatabasesCommands = {
66- "codeQL.setCurrentDatabase" : ( uri : Uri ) => Promise < void > ;
67- "codeQL.setDefaultTourDatabase" : ( ) => Promise < void > ;
66+ // Command palette commands
6867 "codeQL.upgradeCurrentDatabase" : ( ) => Promise < void > ;
6968 "codeQL.clearCache" : ( ) => Promise < void > ;
7069
70+ // Explorer context menu
71+ "codeQL.setCurrentDatabase" : ( uri : Uri ) => Promise < void > ;
72+
73+ // Database panel view title commands
7174 "codeQLDatabases.chooseDatabaseFolder" : ( ) => Promise < void > ;
7275 "codeQLDatabases.chooseDatabaseArchive" : ( ) => Promise < void > ;
7376 "codeQLDatabases.chooseDatabaseInternet" : ( ) => Promise < void > ;
7477 "codeQLDatabases.chooseDatabaseGithub" : ( ) => Promise < void > ;
78+ "codeQLDatabases.sortByName" : ( ) => Promise < void > ;
79+ "codeQLDatabases.sortByDateAdded" : ( ) => Promise < void > ;
80+
81+ // Database panel context menu
7582 "codeQLDatabases.setCurrentDatabase" : (
7683 databaseItem : DatabaseItem ,
7784 ) => Promise < void > ;
78- "codeQLDatabases.sortByName" : ( ) => Promise < void > ;
79- "codeQLDatabases.sortByDateAdded" : ( ) => Promise < void > ;
80- "codeQLDatabases.removeOrphanedDatabases" : ( ) => Promise < void > ;
8185
86+ // Database panel selection commands
8287 "codeQLDatabases.removeDatabase" : SelectionCommandFunction < DatabaseItem > ;
8388 "codeQLDatabases.upgradeDatabase" : SelectionCommandFunction < DatabaseItem > ;
8489 "codeQLDatabases.renameDatabase" : SelectionCommandFunction < DatabaseItem > ;
8590 "codeQLDatabases.openDatabaseFolder" : SelectionCommandFunction < DatabaseItem > ;
8691 "codeQLDatabases.addDatabaseSource" : SelectionCommandFunction < DatabaseItem > ;
92+
93+ // Codespace template commands
94+ "codeQL.setDefaultTourDatabase" : ( ) => Promise < void > ;
95+
96+ // Internal commands
97+ "codeQLDatabases.removeOrphanedDatabases" : ( ) => Promise < void > ;
8798} ;
8899
89100// Commands tied to variant analysis
0 commit comments