Skip to content

Show package name and its version while hovering#3589

Closed
July541 wants to merge 4 commits into
haskell:masterfrom
July541:package-name
Closed

Show package name and its version while hovering#3589
July541 wants to merge 4 commits into
haskell:masterfrom
July541:package-name

Conversation

@July541

@July541 July541 commented May 13, 2023

Copy link
Copy Markdown
Collaborator

Preview in VSCode

image

@July541
July541 marked this pull request as ready for review May 13, 2023 12:18
@July541
July541 requested a review from pepeiborra as a code owner May 13, 2023 12:18
@michaelpj
michaelpj requested a review from wz1000 May 17, 2023 14:19
@michaelpj

Copy link
Copy Markdown
Collaborator

nag @wz1000

@fendor
fendor self-requested a review June 9, 2023 08:12
-> Position
-> IO (Maybe (Maybe Range, [T.Text]))
atPointPackage (HAR _ hf _ _ kind) env pos =
case uncons (pointCommand hf pos hoverInfo) of

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.

Why are we not doing this work in atPoint directly? I worry that we redo rather expensive work here, specifically pointCommand. Any rationale?
If we do the work directly in atPoint, we can also avoid the overlapping instance.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes you are right, ideally, I just want to prevent impurity in atPioint.

I've checked HieDb and found it doesn't have any clue about import statements, so I'm thinking if I can add an extra field in HieDb to prevent doing IO for every hover.

@July541

July541 commented Jul 7, 2023

Copy link
Copy Markdown
Collaborator Author

Close in favor of #3691.

@July541 July541 closed this Jul 7, 2023
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.

3 participants