Fix sending null
This commit is contained in:
parent
55b428cea6
commit
8aa8e5cd3d
1 changed files with 1 additions and 1 deletions
|
|
@ -2028,7 +2028,7 @@ fn send_lsp_init_request(self: *Self, lsp: *const LSP, project_path: []const u8,
|
||||||
const initializationOptions: struct {
|
const initializationOptions: struct {
|
||||||
pub fn cborEncode(self_: @This(), writer: *std.Io.Writer) std.io.Writer.Error!void {
|
pub fn cborEncode(self_: @This(), writer: *std.Io.Writer) std.io.Writer.Error!void {
|
||||||
const toCbor = cbor.fromJsonAlloc(self_.alloc, self_.options) catch {
|
const toCbor = cbor.fromJsonAlloc(self_.alloc, self_.options) catch {
|
||||||
try cbor.writeValue(writer, cbor.null_);
|
try cbor.writeValue(writer, null);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
defer self_.alloc.free(toCbor);
|
defer self_.alloc.free(toCbor);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue