fix: flush lsp log file after every message

This commit is contained in:
CJ van den Berg 2025-09-26 14:09:44 +02:00
parent d97a4c1108
commit 06b9d2384e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -696,6 +696,7 @@ const Process = struct {
if (!debug_lsp) return;
const file_writer = if (self.log_file_writer) |*writer| writer else return;
file_writer.interface.print(format, args) catch {};
file_writer.interface.flush() catch {};
}
};