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,17 +217,21 @@ 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" ) ) {
222
+ console . log ( "Changed path includes build ninja" ) ;
221
223
if (
222
224
config . extensionConfiguration . cache ?. projectConfig ?. enabled === true
223
225
) {
224
226
let projectRoot = utils . findProjectRootOfFile ( changedPath ) ;
225
227
if ( projectRoot != null ) {
228
+ console . log ( "Sync project config cache" ) ;
226
229
syncProjectConfigCache ( projectRoot ) ;
227
230
}
228
231
}
229
232
} else {
230
233
try {
234
+ console . log ( "Send updated diagnostics" ) ;
231
235
sendUpdatedDiagnostics ( ) ;
232
236
sendCompilationFinishedMessage ( ) ;
233
237
if ( config . extensionConfiguration . inlayHints ?. enable === true ) {
@@ -236,12 +240,13 @@ let compilerLogsWatcher = chokidar
236
240
if ( config . extensionConfiguration . codeLens === true ) {
237
241
sendCodeLensRefresh ( ) ;
238
242
}
239
- } catch {
240
- console . log ( "Error while sending updated diagnostics" ) ;
243
+ } catch ( error ) {
244
+ console . log ( "Error while sending updated diagnostics" , error ) ;
241
245
}
242
246
}
243
247
} ) ;
244
248
let stopWatchingCompilerLog = ( ) => {
249
+ console . log ( "Stop watching compiler log" ) ;
245
250
// TODO: cleanup of compilerLogs?
246
251
compilerLogsWatcher . close ( ) ;
247
252
} ;
You can’t perform that action at this time.
0 commit comments