Field and value completion does not work inside conditionals #4289
Labels
component: hls-cabal-plugin
Issues related to the hls-cabal-plugin
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
ZuriHac
This issue is suitable for ZuriHac Hacking sessions
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: