Removed debug traces

This commit is contained in:
Alexandros Naskos 2020-05-23 00:05:16 +03:00
parent 077a17e2f5
commit d4871914ea

View File

@ -190,8 +190,6 @@ fn nodeToCompletion(list: *std.ArrayList(types.CompletionItem), analysis_ctx: *D
else else
null; null;
std.debug.warn("{}\n", .{node.id});
switch (node.id) { switch (node.id) {
.ErrorSetDecl, .Root, .ContainerDecl => { .ErrorSetDecl, .Root, .ContainerDecl => {
try containerToCompletion(list, analysis_ctx, node, config); try containerToCompletion(list, analysis_ctx, node, config);
@ -413,7 +411,6 @@ fn completeGlobal(id: i64, pos_index: usize, handle: *DocumentStore.Handle, conf
try analysis.declsFromIndex(&decl_nodes, analysis_ctx.tree, pos_index); try analysis.declsFromIndex(&decl_nodes, analysis_ctx.tree, pos_index);
for (decl_nodes.items) |decl_ptr| { for (decl_nodes.items) |decl_ptr| {
var decl = decl_ptr.*; var decl = decl_ptr.*;
std.debug.warn("Global completion: {}\n", .{decl});
try nodeToCompletion(&completions, &analysis_ctx, decl_ptr, config); try nodeToCompletion(&completions, &analysis_ctx, decl_ptr, config);
} }