Skip to content

Commit

Permalink
Update inlay_hints.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
Koranir committed Sep 17, 2023
1 parent e9cded5 commit 6848a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/inlay_hints.zig
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Builder = struct {
.position = position,
.label = .{ .string = hint.label },
.kind = hint.kind,
.tooltip = if (hint.tooltip != null) .{ .MarkupContent = hint.tooltip.? } else null,
.tooltip = if (hint.tooltip) |tooltip| .{ .MarkupContent = tooltip } else null,
.paddingLeft = false,
.paddingRight = hint.kind == .Parameter,
};
Expand Down

0 comments on commit 6848a2a

Please sign in to comment.