Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerschmidt committed Oct 24, 2024
1 parent 062f94e commit 72cf0c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ let compilerLogsWatcher = chokidar
stabilityThreshold: 1,
},
})
.on("all", (_e, changedPath) => {
console.log("changes in path: ", changedPath);
.on("all", (eventName, changedPath, stats) => {
console.log(eventName, changedPath, stats);
if (changedPath.includes("build.ninja")) {
if (config.extensionConfiguration.cache?.projectConfig?.enable === true) {
console.log("Changed path includes build ninja");
Expand All @@ -231,6 +231,7 @@ let compilerLogsWatcher = chokidar
try {
console.log("Send updated diagnostics");
sendUpdatedDiagnostics();
console.log("Send compilation finished message");
sendCompilationFinishedMessage();
if (config.extensionConfiguration.inlayHints?.enable === true) {
sendInlayHintsRefresh();
Expand Down

0 comments on commit 72cf0c9

Please sign in to comment.