-
-
Notifications
You must be signed in to change notification settings - Fork 400
DRAFT: Completions for cabal.project files, hls-cabal-project-plugin #4680
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rebase is incorrect, the first commit is not the one from your PR #4615
("test-options:", noopCompleter), | ||
("benchmark-options:", noopCompleter), | ||
("coverage:", constantCompleter ["False", "True"]), | ||
("ghc-options:", noopCompleter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data TopLevelStanza | ||
= Package | ||
| ProgramOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused
@@ -0,0 +1,177 @@ | |||
{-# LANGUAGE OverloadedStrings #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file seems to be unnecessary except contextToCompleter
.
getTextEditTexts :: [CompletionItem] -> [T.Text] | ||
getTextEditTexts compls = mapMaybe (^? L.textEdit . _Just . _L . L.newText) compls | ||
|
||
fileCompleterTests :: TestTree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to test this here, as it is already tested by the hls-cabal-plugin
Draft of completions support for cabal.project plugin for GSoC 2025.
Still in progress!