@@ -250,31 +250,39 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
250250 // of activation.
251251 errorStubs . forEach ( stub => stub . dispose ( ) ) ;
252252
253+ logger . log ( 'Initializing configuration listener...' ) ;
253254 const qlConfigurationListener = await QueryServerConfigListener . createQueryServerConfigListener ( distributionManager ) ;
254255 ctx . subscriptions . push ( qlConfigurationListener ) ;
255256
257+ logger . log ( 'Initializing CodeQL cli server...' ) ;
256258 const cliServer = new CodeQLCliServer ( distributionManager , logger ) ;
257259 ctx . subscriptions . push ( cliServer ) ;
258260
261+ logger . log ( 'Initializing query server client.' ) ;
259262 const qs = new qsClient . QueryServerClient ( qlConfigurationListener , cliServer , {
260263 logger : queryServerLogger ,
261264 } , task => Window . withProgress ( { title : 'CodeQL query server' , location : ProgressLocation . Window } , task ) ) ;
262265 ctx . subscriptions . push ( qs ) ;
263266 await qs . startQueryServer ( ) ;
264267
268+ logger . log ( 'Initializing database manager.' ) ;
265269 const dbm = new DatabaseManager ( ctx , qlConfigurationListener , logger ) ;
266270 ctx . subscriptions . push ( dbm ) ;
271+ logger . log ( 'Initializing database panel.' ) ;
267272 const databaseUI = new DatabaseUI ( ctx , cliServer , dbm , qs , getContextStoragePath ( ctx ) ) ;
268273 ctx . subscriptions . push ( databaseUI ) ;
269274
275+ logger . log ( 'Initializing query history manager.' ) ;
270276 const queryHistoryConfigurationListener = new QueryHistoryConfigListener ( ) ;
271277 const qhm = new QueryHistoryManager (
272278 ctx ,
273279 queryHistoryConfigurationListener ,
274280 async item => showResultsForCompletedQuery ( item , WebviewReveal . Forced )
275281 ) ;
282+ logger . log ( 'Initializing results panel interface.' ) ;
276283 const intm = new InterfaceManager ( ctx , dbm , cliServer , queryServerLogger ) ;
277284 ctx . subscriptions . push ( intm ) ;
285+ logger . log ( 'Initializing source archive filesystem provider.' ) ;
278286 archiveFilesystemProvider . activate ( ctx ) ;
279287
280288 async function showResultsForCompletedQuery ( query : CompletedQuery , forceReveal : WebviewReveal ) : Promise < void > {
@@ -305,6 +313,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
305313
306314 ctx . subscriptions . push ( tmpDirDisposal ) ;
307315
316+ logger . log ( 'Initializing CodeQL language server.' ) ;
308317 const client = new LanguageClient ( 'CodeQL Language Server' , ( ) => spawnIdeServer ( qlConfigurationListener ) , {
309318 documentSelector : [
310319 { language : 'ql' , scheme : 'file' } ,
@@ -317,6 +326,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
317326 outputChannel : ideServerLogger . outputChannel
318327 } , true ) ;
319328
329+ logger . log ( 'Initializing QLTest interface.' ) ;
320330 const testExplorerExtension = extensions . getExtension < TestHub > ( testExplorerExtensionId ) ;
321331 if ( testExplorerExtension ) {
322332 const testHub = testExplorerExtension . exports ;
@@ -327,6 +337,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
327337 ctx . subscriptions . push ( testUIService ) ;
328338 }
329339
340+ logger . log ( 'Registering top-level command palette commands.' ) ;
330341 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.runQuery' , async ( uri : Uri | undefined ) => await compileAndRunQuery ( false , uri ) ) ) ;
331342 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.quickEval' , async ( uri : Uri | undefined ) => await compileAndRunQuery ( true , uri ) ) ) ;
332343 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.quickQuery' , async ( ) => displayQuickQuery ( ctx , cliServer , databaseUI ) ) ) ;
@@ -338,9 +349,11 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
338349 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.chooseDatabaseArchive' , ( ) => databaseUI . handleChooseDatabaseArchive ( ) ) ) ;
339350 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.chooseDatabaseInternet' , ( ) => databaseUI . handleChooseDatabaseInternet ( ) ) ) ;
340351
352+ logger . log ( 'Starting language server.' ) ;
341353 ctx . subscriptions . push ( client . start ( ) ) ;
342354
343355 // Jump-to-definition and find-references
356+ logger . log ( 'Registering jump-to-definition handlers.' ) ;
344357 languages . registerDefinitionProvider (
345358 { scheme : archiveFilesystemProvider . zipArchiveScheme } ,
346359 new TemplateQueryDefinitionProvider ( cliServer , qs , dbm )
@@ -350,6 +363,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
350363 new TemplateQueryReferenceProvider ( cliServer , qs , dbm )
351364 ) ;
352365
366+ logger . log ( 'Successfully finished extension initialization.' ) ;
353367}
354368
355369function getContextStoragePath ( ctx : ExtensionContext ) {
0 commit comments