@@ -39,6 +39,13 @@ export type BuiltInVsCodeCommands = {
3939 "workbench.action.reloadWindow" : ( ) => Promise < void > ;
4040} ;
4141
42+ // Commands that are available before the extension is fully activated.
43+ // These commands are *not* registered using the command manager, but can
44+ // be invoked using the command manager.
45+ export type PreActivationCommands = {
46+ "codeQL.checkForUpdatesToCLI" : ( ) => Promise < void > ;
47+ } ;
48+
4249// Base commands not tied directly to a module like e.g. variant analysis.
4350export type BaseCommands = {
4451 "codeQL.openDocumentation" : ( ) => Promise < void > ;
@@ -240,7 +247,7 @@ export type MockGitHubApiServerCommands = {
240247 "codeQL.mockGitHubApiServer.unloadScenario" : ( ) => Promise < void > ;
241248} ;
242249
243- // All commands where the implementation is provided by this extension.
250+ // All commands where the implementation is provided by this activated extension.
244251export type AllExtensionCommands = BaseCommands &
245252 QueryEditorCommands &
246253 ResultsViewCommands &
@@ -256,7 +263,9 @@ export type AllExtensionCommands = BaseCommands &
256263 Partial < TestUICommands > &
257264 MockGitHubApiServerCommands ;
258265
259- export type AllCommands = AllExtensionCommands & BuiltInVsCodeCommands ;
266+ export type AllCommands = AllExtensionCommands &
267+ PreActivationCommands &
268+ BuiltInVsCodeCommands ;
260269
261270export type AppCommandManager = CommandManager < AllCommands > ;
262271
0 commit comments