Put constants/imports at the top

This commit is contained in:
ryuukk 2022-06-24 11:26:57 +02:00 committed by Auguste Rame
parent 2fdb05f783
commit 9101cc7c3f

View File

@ -1217,6 +1217,8 @@ fn completeError(arena: *std.heap.ArenaAllocator, id: types.RequestId, handle: *
fn kindToSortScore(kind: types.CompletionItem.Kind) [] const u8 {
return switch (kind)
{
.Constant => "1_",
.Variable => "2_",
.Field => "3_",
.Function => "4_",