fix: do not log unsupported LSP requests unless lsp_output is verbose
closes #434
This commit is contained in:
parent
3886427582
commit
57458dff5d
1 changed files with 2 additions and 1 deletions
|
|
@ -810,7 +810,8 @@ const Process = struct {
|
|||
else {
|
||||
const params = try cbor.toJsonAlloc(self.allocator, params_cb);
|
||||
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 {};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue