@@ -251,31 +251,39 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
251251 // of activation.
252252 errorStubs . forEach ( stub => stub . dispose ( ) ) ;
253253
254+ logger . log ( 'Initializing configuration listener...' ) ;
254255 const qlConfigurationListener = await QueryServerConfigListener . createQueryServerConfigListener ( distributionManager ) ;
255256 ctx . subscriptions . push ( qlConfigurationListener ) ;
256257
258+ logger . log ( 'Initializing CodeQL cli server...' ) ;
257259 const cliServer = new CodeQLCliServer ( distributionManager , logger ) ;
258260 ctx . subscriptions . push ( cliServer ) ;
259261
262+ logger . log ( 'Initializing query server client.' ) ;
260263 const qs = new qsClient . QueryServerClient ( qlConfigurationListener , cliServer , {
261264 logger : queryServerLogger ,
262265 } , task => Window . withProgress ( { title : 'CodeQL query server' , location : ProgressLocation . Window } , task ) ) ;
263266 ctx . subscriptions . push ( qs ) ;
264267 await qs . startQueryServer ( ) ;
265268
269+ logger . log ( 'Initializing database manager.' ) ;
266270 const dbm = new DatabaseManager ( ctx , qlConfigurationListener , logger ) ;
267271 ctx . subscriptions . push ( dbm ) ;
272+ logger . log ( 'Initializing database panel.' ) ;
268273 const databaseUI = new DatabaseUI ( ctx , cliServer , dbm , qs , getContextStoragePath ( ctx ) ) ;
269274 ctx . subscriptions . push ( databaseUI ) ;
270275
276+ logger . log ( 'Initializing query history manager.' ) ;
271277 const queryHistoryConfigurationListener = new QueryHistoryConfigListener ( ) ;
272278 const qhm = new QueryHistoryManager (
273279 ctx ,
274280 queryHistoryConfigurationListener ,
275281 async item => showResultsForCompletedQuery ( item , WebviewReveal . Forced )
276282 ) ;
283+ logger . log ( 'Initializing results panel interface.' ) ;
277284 const intm = new InterfaceManager ( ctx , dbm , cliServer , queryServerLogger ) ;
278285 ctx . subscriptions . push ( intm ) ;
286+ logger . log ( 'Initializing source archive filesystem provider.' ) ;
279287 archiveFilesystemProvider . activate ( ctx ) ;
280288
281289 async function showResultsForCompletedQuery ( query : CompletedQuery , forceReveal : WebviewReveal ) : Promise < void > {
@@ -306,6 +314,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
306314
307315 ctx . subscriptions . push ( tmpDirDisposal ) ;
308316
317+ logger . log ( 'Initializing CodeQL language server.' ) ;
309318 const client = new LanguageClient ( 'CodeQL Language Server' , ( ) => spawnIdeServer ( qlConfigurationListener ) , {
310319 documentSelector : [
311320 { language : 'ql' , scheme : 'file' } ,
@@ -318,6 +327,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
318327 outputChannel : ideServerLogger . outputChannel
319328 } , true ) ;
320329
330+ logger . log ( 'Initializing QLTest interface.' ) ;
321331 const testExplorerExtension = extensions . getExtension < TestHub > ( testExplorerExtensionId ) ;
322332 if ( testExplorerExtension ) {
323333 const testHub = testExplorerExtension . exports ;
@@ -328,6 +338,7 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
328338 ctx . subscriptions . push ( testUIService ) ;
329339 }
330340
341+ logger . log ( 'Registering top-level command palette commands.' ) ;
331342 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.runQuery' , async ( uri : Uri | undefined ) => await compileAndRunQuery ( false , uri ) ) ) ;
332343 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.quickEval' , async ( uri : Uri | undefined ) => await compileAndRunQuery ( true , uri ) ) ) ;
333344 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.quickQuery' , async ( ) => displayQuickQuery ( ctx , cliServer , databaseUI ) ) ) ;
@@ -337,9 +348,11 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
337348 } ) ) ;
338349 ctx . subscriptions . push ( commands . registerCommand ( 'codeQL.downloadDatabase' , ( ) => promptImportInternetDatabase ( dbm , getContextStoragePath ( ctx ) ) ) ) ;
339350
351+ logger . log ( 'Starting language server.' ) ;
340352 ctx . subscriptions . push ( client . start ( ) ) ;
341353
342354 if ( EXPERIMENTAL_FEATURES_SETTING . getValue ( ) ) {
355+ logger . log ( '[EXPERIMENTAL] Registering jump-to-definition handlers.' ) ;
343356 languages . registerDefinitionProvider (
344357 { scheme : archiveFilesystemProvider . zipArchiveScheme } ,
345358 new TemplateQueryDefinitionProvider ( cliServer , qs , dbm )
@@ -349,6 +362,8 @@ async function activateWithInstalledDistribution(ctx: ExtensionContext, distribu
349362 new TemplateQueryReferenceProvider ( cliServer , qs , dbm )
350363 ) ;
351364 }
365+
366+ logger . log ( 'Successfully finished extension initialization.' ) ;
352367}
353368
354369function getContextStoragePath ( ctx : ExtensionContext ) {
0 commit comments