Wrap demantic tokens response result in 'data'

This commit is contained in:
Alexandros Naskos 2020-06-16 02:14:39 +03:00
parent 2da58c5068
commit bed05b6601
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -59,7 +59,7 @@ pub const ResponseParams = union(enum) {
Location: Location,
Hover: Hover,
DocumentSymbols: []DocumentSymbol,
SemanticTokens: []u32,
SemanticTokens: struct { data: []u32 },
};
/// JSONRPC error