feat: minor improvements to LSP error handling

This commit is contained in:
CJ van den Berg 2024-04-21 00:02:24 +02:00
parent ef57339258
commit c79c684969
2 changed files with 6 additions and 7 deletions

View file

@ -318,7 +318,7 @@ fn receive_safe(self: *Self, from: tp.pid_ref, m: tp.message) tp.result {
return;
var msg: []const u8 = undefined;
if (try m.match(.{ "exit", tp.extract(&msg), tp.more })) {
if (try m.match(.{ "exit", tp.extract(&msg) }) or try m.match(.{ "exit", tp.extract(&msg), tp.more })) {
self.logger.err_msg("tui", msg);
return;
}