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{
|
return try send(types.Response{
|
||||||
.id = id,
|
.id = id,
|
||||||
.result = .{ .SemanticTokens = token_array },
|
.result = .{ .SemanticTokens = .{ .data = token_array } },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Autocomplete / Signatures
|
// Autocomplete / Signatures
|
||||||
|
@ -59,7 +59,7 @@ pub const ResponseParams = union(enum) {
|
|||||||
Location: Location,
|
Location: Location,
|
||||||
Hover: Hover,
|
Hover: Hover,
|
||||||
DocumentSymbols: []DocumentSymbol,
|
DocumentSymbols: []DocumentSymbol,
|
||||||
SemanticTokens: []u32,
|
SemanticTokens: struct { data: []u32 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/// JSONRPC error
|
/// JSONRPC error
|
||||||
|
Loading…
Reference in New Issue
Block a user