Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

July541
Copy link
Collaborator

@July541 July541 commented May 13, 2023

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

July541 commented Jul 7, 2023

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