-
-
Notifications
You must be signed in to change notification settings - Fork 388
Field and value completion does not work inside conditionals #4289
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
Do we need to change the |
I don't think it is necessary to change the type of |
@dyniec is taking a stab at this 🎊 |
@dyniec are you still working on this issue? |
I couldn't make it work. Please mark it as up for grabs |
Okey dokey, thank you for the response :) |
Hi, I'll give it a try :) |
Implemented by #4427 |
Cabal completion seems to not be able to complete anything inside if statements.
Here, the default completion for vscode is suggested inside an if conditional, when it should be the library section fields:


Here, the exposed modules values should be completed instead of the default vscode completions:
The fields we are checking for completion are defined here.
I think to fix this we can check the parent sections recursively instead of simply the most direct parent to figure out the stanza the cursor is located in.
The text was updated successfully, but these errors were encountered: