Skip to content

Commit 6329cc5

Browse files
committed
added struct names to completion items
1 parent c8e6975 commit 6329cc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

handlers/completion.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ func CreateTextDocumentCompletion(dm *documents.DocumentManager) protocol.TextDo
6767
for _, a := range decl.Aliases {
6868
aliases = append(aliases, a)
6969
}
70+
items = append(items, protocol.CompletionItem{
71+
Kind: ptr(protocol.CompletionItemKindClass),
72+
Label: decl.Name(),
73+
})
7074
}
7175
}
7276
}

0 commit comments

Comments
 (0)