You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fow now enum variants needs to be wrapped with single quote (') whether it's inline or defined with ----@alias. This is a constraint that I deliberately put in otherwise I have to parse different constructs.
---@paramt?'"foo"'|'"bar"'
---@aliasT---| '"foo"' # Foo Variant---| '"bar"' # Bar Variant
lua-language-server supports defining literals/an sum type inline in the type definition. An example:
@param x "foo"|"bar"
But this seems to break lemmy-help:
Results in:
Compared with a regular type definition:
Which works as expected:
The long form also works:
The text was updated successfully, but these errors were encountered: