From 1abf3289474f7819484e2218cc6d7995adcf4ce6 Mon Sep 17 00:00:00 2001 From: ryuukk <44361234+ryuukk@users.noreply.github.com> Date: Wed, 22 Jun 2022 02:25:17 +0200 Subject: [PATCH] Cleanup --- src/main.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.zig b/src/main.zig index b527c36..3ec5aae 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1076,8 +1076,6 @@ fn completeLabel(arena: *std.heap.ArenaAllocator, id: types.RequestId, pos_index .orig_handle = handle, }; try analysis.iterateLabels(handle, pos_index, declToCompletion, context); - - sortCompletionItems(completions.items, config); truncateCompletions(completions.items, config.max_detail_length); @@ -1236,7 +1234,7 @@ fn kindToSortScore(kind: types.CompletionItem.Kind) [] const u8 { }; } -fn sortCompletionItems(completions: []types.CompletionItem, config: *const Config) void { +fn sortCompletionItems(completions: []types.CompletionItem, _: *const Config) void { // TODO: config for sorting rule? for (completions) |*c| { c.sortText = kindToSortScore(c.kind);