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 e2795aa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 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 @@ -227,10 +227,17 @@ let compilerLogsWatcher = chokidar
syncProjectConfigCache(projectRoot);
}
}
} else if (
eventName === "unlink" &&
changedPath.includes(".compiler.log")
) {
console.log(compilerLogsWatcher);
console.log(".compiler.log has been deleted");
} else {
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 e2795aa

Please sign in to comment.