Skip to content

Show package name and its version while hovering on import statements#3691

Merged
July541 merged 4 commits into
haskell:masterfrom
July541:package-name-2
Aug 7, 2023
Merged

Show package name and its version while hovering on import statements#3691
July541 merged 4 commits into
haskell:masterfrom
July541:package-name-2

Conversation

@July541

@July541 July541 commented Jul 7, 2023

Copy link
Copy Markdown
Collaborator

HieFile doesn't have package information for import statements and we can't get package information from a simple ModuleName in a purity environment.

This pr still uses GHC.findImportedModule to find package info from ghc env, and IO only affect while hovering on import statements, so they are not expensive I think.

@fendor fendor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, some nitpicks

Comment thread ghcide/src/Development/IDE/Spans/AtPoint.hs
Comment thread ghcide/src/Development/IDE/Spans/AtPoint.hs Outdated
@July541

July541 commented Aug 5, 2023

Copy link
Copy Markdown
Collaborator Author

I'll merge this tomorrow if no more review here.

@July541

July541 commented Aug 6, 2023

Copy link
Copy Markdown
Collaborator Author

Nix build ran out of disks, can someone take a look?

@fendor

fendor commented Aug 7, 2023

Copy link
Copy Markdown
Collaborator

@July541 Failing nix CI is not blocking, so don't worry about it. It will likely get fixed during the next hackathon :)

Rebasing the PR should be fine, imo.

@July541
July541 merged commit 5436ef0 into haskell:master Aug 7, 2023
@fendor fendor mentioned this pull request Aug 8, 2023
19 tasks
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