Skip to content
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

Add completions for import statements in cabal files #4305

Merged
merged 2 commits into from
Jun 16, 2024

Conversation

VeryMilkyJoe
Copy link
Collaborator

Currently any common stanzas in the cabal file will be suggested as values for an import field.
In the future, we should only suggest names of common stanzas, defined before the cursor position to adhere to the cabal specification.

@VeryMilkyJoe VeryMilkyJoe requested a review from fendor as a code owner June 9, 2024 13:51
@VeryMilkyJoe VeryMilkyJoe force-pushed the cabal-completions-imports branch 2 times, most recently from 88ca478 to 7f8a0f6 Compare June 9, 2024 15:24
At the moment import fields always suggest any common stanza names
occuring in the file, while it should be only the ones defined before
the cursor position.

Also moves all CabalFields utility into a separate module
@fendor fendor force-pushed the cabal-completions-imports branch from f63f0bd to 14171a0 Compare June 12, 2024 20:13
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.

LGTM, thanks!

@michaelpj michaelpj enabled auto-merge (squash) June 16, 2024 20:28
@michaelpj michaelpj merged commit 62892ae into haskell:master Jun 16, 2024
39 checks passed
dsaenztagarro added a commit to dsaenztagarro/haskell-language-server that referenced this pull request Jun 26, 2024
* master: (36 commits)
  Migrate indexHieFile progress notification to ProgressReporting API (haskell#4205)
  Remove final allow-newer for 9.10 (haskell#4329)
  Remove unused exactprint dep
  More stylish
  Use newer cabal-fmt, partially lift ghc version restriction
  stylish
  Cleanup CI configs and cabal files
  More no-op code cleanup
  Remove no-longer-needed compat code, remove unused stuff
  Remove pre-multi component junk for GHC <= 9.2
  Fix stylish
  Fix a few things
  Remove from CI
  Update docs
  Fix loss of 9.2 GHC version
  More CPP
  WIP evaluate CPP
  Prepare release 2.9.0.0 (haskell#4319)
  Add completion for import fields in cabal files (haskell#4305)
  Refine GHC deprecation policy (haskell#3438)
  ...
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.

None yet

3 participants