Wrap demantic tokens response result in 'data'
This commit is contained in:
parent
2da58c5068
commit
bed05b6601
@ -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
|
||||
|
@ -59,7 +59,7 @@ pub const ResponseParams = union(enum) {
|
||||
Location: Location,
|
||||
Hover: Hover,
|
||||
DocumentSymbols: []DocumentSymbol,
|
||||
SemanticTokens: []u32,
|
||||
SemanticTokens: struct { data: []u32 },
|
||||
};
|
||||
|
||||
/// JSONRPC error
|
||||
|
Loading…
Reference in New Issue
Block a user