@@ -822,6 +822,9 @@ async function activateWithInstalledDistribution(
822822 const summaryLanguageSupport = new SummaryLanguageSupport ( ) ;
823823 ctx . subscriptions . push ( summaryLanguageSupport ) ;
824824
825+ const mockServer = new VSCodeMockGitHubApiServer ( ctx ) ;
826+ ctx . subscriptions . push ( mockServer ) ;
827+
825828 void extLogger . log ( "Registering top-level command palette commands." ) ;
826829
827830 const allCommands : AllCommands = {
@@ -847,6 +850,7 @@ async function activateWithInstalledDistribution(
847850 } ) ,
848851 ...evalLogViewer . getCommands ( ) ,
849852 ...summaryLanguageSupport . getCommands ( ) ,
853+ ...mockServer . getCommands ( ) ,
850854 } ;
851855
852856 for ( const [ commandName , command ] of Object . entries ( allCommands ) ) {
@@ -973,39 +977,6 @@ async function activateWithInstalledDistribution(
973977 ) ,
974978 ) ;
975979
976- const mockServer = new VSCodeMockGitHubApiServer ( ctx ) ;
977- ctx . subscriptions . push ( mockServer ) ;
978- ctx . subscriptions . push (
979- commandRunner (
980- "codeQL.mockGitHubApiServer.startRecording" ,
981- async ( ) => await mockServer . startRecording ( ) ,
982- ) ,
983- ) ;
984- ctx . subscriptions . push (
985- commandRunner (
986- "codeQL.mockGitHubApiServer.saveScenario" ,
987- async ( ) => await mockServer . saveScenario ( ) ,
988- ) ,
989- ) ;
990- ctx . subscriptions . push (
991- commandRunner (
992- "codeQL.mockGitHubApiServer.cancelRecording" ,
993- async ( ) => await mockServer . cancelRecording ( ) ,
994- ) ,
995- ) ;
996- ctx . subscriptions . push (
997- commandRunner (
998- "codeQL.mockGitHubApiServer.loadScenario" ,
999- async ( ) => await mockServer . loadScenario ( ) ,
1000- ) ,
1001- ) ;
1002- ctx . subscriptions . push (
1003- commandRunner (
1004- "codeQL.mockGitHubApiServer.unloadScenario" ,
1005- async ( ) => await mockServer . unloadScenario ( ) ,
1006- ) ,
1007- ) ;
1008-
1009980 await commands . executeCommand ( "codeQLDatabases.removeOrphanedDatabases" ) ;
1010981
1011982 void extLogger . log ( "Reading query history" ) ;
0 commit comments