Skip to content

Commit 062f94e

Browse files
WIP
1 parent 8849a58 commit 062f94e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: server/src/server.ts

+7-2
Original file line numberDiff line numberDiff 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
});
242246
let stopWatchingCompilerLog = () => {
247+
console.log("Stop watching compiler log");
243248
// TODO: cleanup of compilerLogs?
244249
compilerLogsWatcher.close();
245250
};

0 commit comments

Comments
 (0)