From 2dc7b609d168780a4e70b137a6dc3bc5d64ba47c Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Thu, 18 Jun 2020 15:14:55 +0300 Subject: [PATCH] Added a TODO comment --- src/semantic_tokens.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/semantic_tokens.zig b/src/semantic_tokens.zig index 8bb4032..2cb2a72 100644 --- a/src/semantic_tokens.zig +++ b/src/semantic_tokens.zig @@ -177,6 +177,7 @@ fn colorIdentifierBasedOnType(builder: *Builder, type_node: analysis.TypeWithHan } } +// TODO This is very slow and does a lot of extra work, improve in the future. fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *DocumentStore, maybe_node: ?*ast.Node) error{OutOfMemory}!void { if (maybe_node == null) return; const node = maybe_node.?;