@@ -98,11 +98,11 @@ export class LspController {
9898 }
9999
100100 async buildIndex ( buildIndexConfig : BuildIndexConfig ) {
101- this . logger . info ( `LspController: Starting to build index of project` )
101+ this . logger . info ( `Starting to build index of project` )
102102 const start = performance . now ( )
103103 const projPaths = ( vscode . workspace . workspaceFolders ?? [ ] ) . map ( ( folder ) => folder . uri . fsPath )
104104 if ( projPaths . length === 0 ) {
105- this . logger . info ( `LspController: Skipping building index. No projects found in workspace` )
105+ this . logger . info ( `Skipping building index. No projects found in workspace` )
106106 return
107107 }
108108 projPaths . sort ( )
@@ -119,12 +119,12 @@ export class LspController {
119119 ( accumulator , currentFile ) => accumulator + currentFile . fileSizeBytes ,
120120 0
121121 )
122- this . logger . info ( `LspController: Found ${ files . length } files in current project ${ projPaths } ` )
122+ this . logger . info ( `Found ${ files . length } files in current project ${ projPaths } ` )
123123 const config = buildIndexConfig . isVectorIndexEnabled ? 'all' : 'default'
124124 const r = files . map ( ( f ) => f . fileUri . fsPath )
125125 const resp = await LspClient . instance . buildIndex ( r , projRoot , config )
126126 if ( resp ) {
127- this . logger . debug ( `LspController: Finish building index of project` )
127+ this . logger . debug ( `Finish building index of project` )
128128 const usage = await LspClient . instance . getLspServerUsage ( )
129129 telemetry . amazonq_indexWorkspace . emit ( {
130130 duration : performance . now ( ) - start ,
@@ -137,7 +137,7 @@ export class LspController {
137137 credentialStartUrl : buildIndexConfig . startUrl ,
138138 } )
139139 } else {
140- this . logger . error ( `LspController: Failed to build index of project` )
140+ this . logger . error ( `Failed to build index of project` )
141141 telemetry . amazonq_indexWorkspace . emit ( {
142142 duration : performance . now ( ) - start ,
143143 result : 'Failed' ,
@@ -149,7 +149,7 @@ export class LspController {
149149 }
150150 } catch ( error ) {
151151 // TODO: use telemetry.run()
152- this . logger . error ( `LspController: Failed to build index of project` )
152+ this . logger . error ( `Failed to build index of project` )
153153 telemetry . amazonq_indexWorkspace . emit ( {
154154 duration : performance . now ( ) - start ,
155155 result : 'Failed' ,
@@ -166,7 +166,7 @@ export class LspController {
166166
167167 async trySetupLsp ( context : vscode . ExtensionContext , buildIndexConfig : BuildIndexConfig ) {
168168 if ( isCloud9 ( ) || isWeb ( ) || isAmazonInternalOs ( ) ) {
169- this . logger . warn ( 'LspController: Skipping LSP setup. LSP is not compatible with the current environment. ' )
169+ this . logger . warn ( 'Skipping LSP setup. LSP is not compatible with the current environment. ' )
170170 // do not do anything if in Cloud9 or Web mode or in AL2 (AL2 does not support node v18+)
171171 return
172172 }
@@ -181,7 +181,7 @@ export class LspController {
181181 const usage = await LspClient . instance . getLspServerUsage ( )
182182 if ( usage ) {
183183 this . logger . info (
184- `LspController: LSP server CPU ${ usage . cpuUsage } %, LSP server Memory ${
184+ `LSP server CPU ${ usage . cpuUsage } %, LSP server Memory ${
185185 usage . memoryUsage / ( 1024 * 1024 )
186186 } MB `
187187 )
@@ -190,7 +190,7 @@ export class LspController {
190190 30 * 60 * 1000
191191 )
192192 } catch ( e ) {
193- this . logger . error ( `LspController: LSP failed to activate ${ e } ` )
193+ this . logger . error ( `LSP failed to activate ${ e } ` )
194194 }
195195 } )
196196 }
@@ -207,7 +207,7 @@ export class LspController {
207207 return
208208 }
209209 this . _contextCommandSymbolsUpdated = true
210- getLogger ( ) . debug ( `LspController: Start adding symbols to context picker menu` )
210+ getLogger ( ) . debug ( `Start adding symbols to context picker menu` )
211211 try {
212212 const indexSeqNum = await LspClient . instance . getIndexSequenceNumber ( )
213213 await LspClient . instance . updateIndex ( [ ] , 'context_command_symbol_update' )
@@ -223,15 +223,15 @@ export class LspController {
223223 { interval : 1000 , timeout : 60_000 , truthy : true }
224224 )
225225 } catch ( err ) {
226- getLogger ( ) . error ( `LspController: Failed to find symbols` )
226+ this . logger . error ( `Failed to find symbols` )
227227 }
228228 }
229229
230230 private async setupLsp ( context : vscode . ExtensionContext ) {
231231 await lspSetupStage ( 'all' , async ( ) => {
232232 const installResult = await new WorkspaceLspInstaller ( ) . resolve ( )
233233 await lspSetupStage ( 'launch' , async ( ) => activateLsp ( context , installResult . resourcePaths ) )
234- this . logger . info ( 'LspController: LSP activated' )
234+ this . logger . info ( 'LSP activated' )
235235 } )
236236 }
237237}
0 commit comments