@@ -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,16 @@ 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 ( ".compiler.log has been deleted" ) ;
230
235
} else {
231
236
try {
232
237
console . log ( "Send updated diagnostics" ) ;
233
238
sendUpdatedDiagnostics ( ) ;
239
+ console . log ( "Send compilation finished message" ) ;
234
240
sendCompilationFinishedMessage ( ) ;
235
241
if ( config . extensionConfiguration . inlayHints ?. enable === true ) {
236
242
sendInlayHintsRefresh ( ) ;
@@ -389,6 +395,7 @@ let updateOpenedFile = (fileUri: string, fileContent: string) => {
389
395
let filePath = fileURLToPath ( fileUri ) ;
390
396
assert ( stupidFileContentCache . has ( filePath ) ) ;
391
397
stupidFileContentCache . set ( filePath , fileContent ) ;
398
+ console . log ( fileUri , fileContent ) ;
392
399
if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
393
400
ic . handleUpdateOpenedFile ( filePath , fileContent , send , ( ) => {
394
401
if ( config . extensionConfiguration . codeLens ) {
0 commit comments