File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,19 @@ let compilerLogsWatcher = chokidar
217217 } ,
218218 } )
219219 . on ( "all" , ( _e , changedPath ) => {
220+ console . log ( "changes in path: " , changedPath ) ;
220221 if ( changedPath . includes ( "build.ninja" ) ) {
221222 if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
223+ console . log ( "Changed path includes build ninja" ) ;
222224 let projectRoot = utils . findProjectRootOfFile ( changedPath ) ;
223225 if ( projectRoot != null ) {
226+ console . log ( "Sync project config cache" ) ;
224227 syncProjectConfigCache ( projectRoot ) ;
225228 }
226229 }
227230 } else {
228231 try {
232+ console . log ( "Send updated diagnostics" ) ;
229233 sendUpdatedDiagnostics ( ) ;
230234 sendCompilationFinishedMessage ( ) ;
231235 if ( config . extensionConfiguration . inlayHints ?. enable === true ) {
@@ -234,12 +238,13 @@ let compilerLogsWatcher = chokidar
234238 if ( config . extensionConfiguration . codeLens === true ) {
235239 sendCodeLensRefresh ( ) ;
236240 }
237- } catch {
238- console . log ( "Error while sending updated diagnostics" ) ;
241+ } catch ( error ) {
242+ console . log ( "Error while sending updated diagnostics" , error ) ;
239243 }
240244 }
241245 } ) ;
242246let stopWatchingCompilerLog = ( ) => {
247+ console . log ( "Stop watching compiler log" ) ;
243248 // TODO: cleanup of compilerLogs?
244249 compilerLogsWatcher . close ( ) ;
245250} ;
You can’t perform that action at this time.
0 commit comments