-
-
Notifications
You must be signed in to change notification settings - Fork 819
"Unqualify type
" code action does not show up in record declarations
#4565
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
Comments
Thank you |
hi! i'm a new contributor, wanted to try tackling this issue :) i found my way to
going to try to figure this out but would love some tips! |
Yeah! Except you're looking at Actually, that depends on where the bug is. I suspect the issue might lie in the fact that the AST visitor is still not 100% implemented, so you might need to edit that. |
thank you!! for the ast visitor, do u mean this?
|
That's what one implementation of the ast visitor looks like, yes. Though I think you may need to modify the actual definition of it, in the |
hi! thank you so much taking the time to explain stuff ~ i might be lost again 😭 i tried to do cysabi@9b86e8a which did not work i tried finding some other places to look and i found some comments about Record Value Constructor which im not sure i quite understand what it's referring to, and of which happens here:
gleam/compiler-core/src/ast/visit.rs Line 1030 in 25e55a6
which does have a todo comment? but im not sure if that's the issue i also know that there's impl's in
visit_typed_custom_type in there, also no avail
im sure im missing something obvious, thank you in advance! |
Your commit seems like the correct way to go, at least that's where I would have started. At this point, I would probably just sprinkle in a handful of |
okay! sent a pr #4595 just as an fyi, it turns out my fix did work, i just did not know haha. got super confused about how the snapshot runner worked as ive never done something like this before, a couple lines in the contributing about installing insta and using the review tool would be my suggestion! |
You mean something like this? |
omg i missed this sorry!! |
Uh oh!
There was an error while loading. Please reload this page.
Reproduction code:
Highlighting on the marked area and running the

Show code actions
LSP command shows no available code actions.Gleam 1.10.0 from Nixpkgs
The text was updated successfully, but these errors were encountered: