Put constants/imports at the top
This commit is contained in:
parent
2fdb05f783
commit
9101cc7c3f
@ -1217,6 +1217,8 @@ fn completeError(arena: *std.heap.ArenaAllocator, id: types.RequestId, handle: *
|
|||||||
fn kindToSortScore(kind: types.CompletionItem.Kind) [] const u8 {
|
fn kindToSortScore(kind: types.CompletionItem.Kind) [] const u8 {
|
||||||
return switch (kind)
|
return switch (kind)
|
||||||
{
|
{
|
||||||
|
.Constant => "1_",
|
||||||
|
|
||||||
.Variable => "2_",
|
.Variable => "2_",
|
||||||
.Field => "3_",
|
.Field => "3_",
|
||||||
.Function => "4_",
|
.Function => "4_",
|
||||||
|
Loading…
Reference in New Issue
Block a user