Skip to content

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rm41339
Copy link
Contributor

@rm41339 rm41339 commented Jul 31, 2025

Draft of completions support for cabal.project plugin for GSoC 2025.

Still in progress!

@rm41339 rm41339 changed the base branch from completions to master July 31, 2025 11:48
@rm41339 rm41339 requested review from michaelpj and fendor as code owners July 31, 2025 11:48
@fendor fendor marked this pull request as draft July 31, 2025 13:02
@fendor fendor requested a review from VeryMilkyJoe July 31, 2025 13:08
Copy link
Collaborator

@fendor fendor left a 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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +20 to +22
data TopLevelStanza
= Package
| ProgramOptions
Copy link
Collaborator

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 #-}
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants