File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ let compilerLogsWatcher = chokidar
216
216
stabilityThreshold : 1 ,
217
217
} ,
218
218
} )
219
- . on ( "all" , ( _e , changedPath ) => {
220
- console . log ( "changes in path: " , changedPath ) ;
219
+ . on ( "all" , ( eventName , changedPath , stats ) => {
220
+ console . log ( eventName , changedPath , stats ) ;
221
221
if ( changedPath . includes ( "build.ninja" ) ) {
222
222
if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
223
223
console . log ( "Changed path includes build ninja" ) ;
@@ -227,10 +227,17 @@ let compilerLogsWatcher = chokidar
227
227
syncProjectConfigCache ( projectRoot ) ;
228
228
}
229
229
}
230
+ } else if (
231
+ eventName === "unlink" &&
232
+ changedPath . includes ( ".compiler.log" )
233
+ ) {
234
+ console . log ( compilerLogsWatcher . getWatched ( ) ) ;
235
+ console . log ( ".compiler.log has been deleted" ) ;
230
236
} else {
231
237
try {
232
238
console . log ( "Send updated diagnostics" ) ;
233
239
sendUpdatedDiagnostics ( ) ;
240
+ console . log ( "Send compilation finished message" ) ;
234
241
sendCompilationFinishedMessage ( ) ;
235
242
if ( config . extensionConfiguration . inlayHints ?. enable === true ) {
236
243
sendInlayHintsRefresh ( ) ;
You can’t perform that action at this time.
0 commit comments