fix: do not log unsupported LSP requests unless lsp_output is verbose

closes #434
This commit is contained in:
CJ van den Berg 2025-12-28 20:08:55 +01:00
parent 3886427582
commit 57458dff5d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -810,7 +810,8 @@ const Process = struct {
else { else {
const params = try cbor.toJsonAlloc(self.allocator, params_cb); const params = try cbor.toJsonAlloc(self.allocator, params_cb);
defer self.allocator.free(params); defer self.allocator.free(params);
self.logger.print("unsupported LSP request: {s} -> {s}", .{ method, params }); if (tp.env.get().is("lsp_verbose"))
self.logger.print("unsupported LSP request: {s} -> {s}", .{ method, params });
project.unsupported_lsp_request(from, cbor_id, method) catch {}; project.unsupported_lsp_request(from, cbor_id, method) catch {};
}; };
} }