haskell-language-server
haskell-language-server copied to clipboard
Field and value completion does not work inside conditionals
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.