Dont respond with semantic token data when disabled in the config

This commit is contained in:
Alexandros Naskos 2020-07-23 22:09:28 +03:00
parent e7a1f5c34f
commit 9aa11276a8

View File

@ -1148,8 +1148,7 @@ fn semanticTokensHandler(arena: *std.heap.ArenaAllocator, id: types.RequestId, r
.id = id, .id = id,
.result = .{ .SemanticTokens = .{ .data = token_array } }, .result = .{ .SemanticTokens = .{ .data = token_array } },
}); });
} else }
return try respondGeneric(id, no_semantic_tokens_response);
} }
fn completionHandler(arena: *std.heap.ArenaAllocator, id: types.RequestId, req: requests.Completion, config: Config) !void { fn completionHandler(arena: *std.heap.ArenaAllocator, id: types.RequestId, req: requests.Completion, config: Config) !void {