-
-
Notifications
You must be signed in to change notification settings - Fork 400
Closed
Labels
HackathonThis issue is suitable for hackathon sessionsThis issue is suitable for hackathon sessionscomponent: hls-cabal-pluginIssues related to the hls-cabal-pluginIssues related to the hls-cabal-pluginlevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
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.
Metadata
Metadata
Assignees
Labels
HackathonThis issue is suitable for hackathon sessionsThis issue is suitable for hackathon sessionscomponent: hls-cabal-pluginIssues related to the hls-cabal-pluginIssues related to the hls-cabal-pluginlevel: easyThe issue is suited for beginnersThe issue is suited for beginnerstype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Type
Projects
Status
Done