File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,19 @@ let compilerLogsWatcher = chokidar
217
217
} ,
218
218
} )
219
219
. on ( "all" , ( _e , changedPath ) => {
220
+ console . log ( "changes in path: " , changedPath ) ;
220
221
if ( changedPath . includes ( "build.ninja" ) ) {
221
222
if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
223
+ console . log ( "Changed path includes build ninja" ) ;
222
224
let projectRoot = utils . findProjectRootOfFile ( changedPath ) ;
223
225
if ( projectRoot != null ) {
226
+ console . log ( "Sync project config cache" ) ;
224
227
syncProjectConfigCache ( projectRoot ) ;
225
228
}
226
229
}
227
230
} else {
228
231
try {
232
+ console . log ( "Send updated diagnostics" ) ;
229
233
sendUpdatedDiagnostics ( ) ;
230
234
sendCompilationFinishedMessage ( ) ;
231
235
if ( config . extensionConfiguration . inlayHints ?. enable === true ) {
@@ -234,12 +238,13 @@ let compilerLogsWatcher = chokidar
234
238
if ( config . extensionConfiguration . codeLens === true ) {
235
239
sendCodeLensRefresh ( ) ;
236
240
}
237
- } catch {
238
- console . log ( "Error while sending updated diagnostics" ) ;
241
+ } catch ( error ) {
242
+ console . log ( "Error while sending updated diagnostics" , error ) ;
239
243
}
240
244
}
241
245
} ) ;
242
246
let stopWatchingCompilerLog = ( ) => {
247
+ console . log ( "Stop watching compiler log" ) ;
243
248
// TODO: cleanup of compilerLogs?
244
249
compilerLogsWatcher . close ( ) ;
245
250
} ;
You can’t perform that action at this time.
0 commit comments