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