From 9aa11276a8a8523af645d3f161174879721e2e79 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Thu, 23 Jul 2020 22:09:28 +0300 Subject: [PATCH] Dont respond with semantic token data when disabled in the config --- src/main.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 6d6b07f..a7bde5e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1148,8 +1148,7 @@ fn semanticTokensHandler(arena: *std.heap.ArenaAllocator, id: types.RequestId, r .id = id, .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 {