diff --git a/src/main.zig b/src/main.zig index f10f8ad..6c737a7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1009,7 +1009,7 @@ fn processJsonRpc(parser: *std.json.Parser, json: []const u8, config: Config) !v return try send(types.Response{ .id = id, - .result = .{ .SemanticTokens = token_array }, + .result = .{ .SemanticTokens = .{ .data = token_array } }, }); } // Autocomplete / Signatures diff --git a/src/types.zig b/src/types.zig index 8270170..3299c39 100644 --- a/src/types.zig +++ b/src/types.zig @@ -59,7 +59,7 @@ pub const ResponseParams = union(enum) { Location: Location, Hover: Hover, DocumentSymbols: []DocumentSymbol, - SemanticTokens: []u32, + SemanticTokens: struct { data: []u32 }, }; /// JSONRPC error