File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ let compilerLogsWatcher = chokidar
216216 stabilityThreshold : 1 ,
217217 } ,
218218 } )
219- . on ( "all" , ( _e , changedPath ) => {
220- console . log ( "changes in path: " , changedPath ) ;
219+ . on ( "all" , ( eventName , changedPath , stats ) => {
220+ console . log ( eventName , changedPath , stats ) ;
221221 if ( changedPath . includes ( "build.ninja" ) ) {
222222 if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
223223 console . log ( "Changed path includes build ninja" ) ;
@@ -227,10 +227,17 @@ let compilerLogsWatcher = chokidar
227227 syncProjectConfigCache ( projectRoot ) ;
228228 }
229229 }
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" ) ;
230236 } else {
231237 try {
232238 console . log ( "Send updated diagnostics" ) ;
233239 sendUpdatedDiagnostics ( ) ;
240+ console . log ( "Send compilation finished message" ) ;
234241 sendCompilationFinishedMessage ( ) ;
235242 if ( config . extensionConfiguration . inlayHints ?. enable === true ) {
236243 sendInlayHintsRefresh ( ) ;
You can’t perform that action at this time.
0 commit comments