Dont respond with semantic token data when disabled in the config
This commit is contained in:
parent
e7a1f5c34f
commit
9aa11276a8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user