Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiline alias #163

Open
fabi321 opened this issue Apr 1, 2024 · 0 comments
Open

Add support for multiline alias #163

fabi321 opened this issue Apr 1, 2024 · 0 comments

Comments

@fabi321
Copy link

fabi321 commented Apr 1, 2024

Environment

Name Version
IDEA version RR2023.3 EAP
Luanalysis version 1.4.0
OS Ubuntu 23.10

Preferences

Lua

Name Setting
Language level Lua 5.3

Type Safety

Name Setting
Strict nil checks
Unknown type (any) is indexable ☑️
Unknown type (any) is callabale ☑️

What are the steps to reproduce this issue?

--- @alias ZoneType
--- | 0 # box
--- | 1 # sphere
--- | 2 # radius

What happens?

Luanalysis doesn't properly recognize this alias
Screenshot_20240401_121231

What were you expecting to happen?

Luanalysis should render the alternatives, including their comments
Screenshot_20240401_121258
Same definition as viewed using lua-language-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant