fix: handle completion items with no type icon
superhtml fix
This commit is contained in:
parent
76600bc6bd
commit
9bdc3e0a0a
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,7 @@ fn select(menu: **Type.MenuState, button: *Type.ButtonState) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
const CompletionItemKind = enum(u8) {
|
const CompletionItemKind = enum(u8) {
|
||||||
|
None = 0,
|
||||||
Text = 1,
|
Text = 1,
|
||||||
Method = 2,
|
Method = 2,
|
||||||
Function = 3,
|
Function = 3,
|
||||||
|
@ -146,6 +147,7 @@ const CompletionItemKind = enum(u8) {
|
||||||
|
|
||||||
fn kind_icon(kind: CompletionItemKind) []const u8 {
|
fn kind_icon(kind: CompletionItemKind) []const u8 {
|
||||||
return switch (kind) {
|
return switch (kind) {
|
||||||
|
.None => " ",
|
||||||
.Text => "",
|
.Text => "",
|
||||||
.Method => "",
|
.Method => "",
|
||||||
.Function => "",
|
.Function => "",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue