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

Migrate FindDefinitionAndHoverTests and HighlightTests part of #4173 and fix HighlightTests #4202

Conversation

soulomoon
Copy link
Collaborator

No description provided.

@soulomoon soulomoon changed the title [Migrate FindDefinitionAndHoverTests] part of 4173 Migrate ghcide tests to hls test utils [Migrate FindDefinitionAndHoverTests] part of #4173 Migrate ghcide tests to hls test utils May 1, 2024
@soulomoon soulomoon changed the title [Migrate FindDefinitionAndHoverTests] part of #4173 Migrate ghcide tests to hls test utils [Migrate FindDefinitionAndHoverTests HighlightTests] part of #4173 Migrate ghcide tests to hls test utils May 1, 2024
@soulomoon soulomoon changed the title [Migrate FindDefinitionAndHoverTests HighlightTests] part of #4173 Migrate ghcide tests to hls test utils [Migrate FindDefinitionAndHoverTests HighlightTests and fix HighlightTests] part of #4173 Migrate ghcide tests to hls test utils May 1, 2024
@soulomoon soulomoon marked this pull request as ready for review May 1, 2024 17:09
@soulomoon soulomoon requested a review from pepeiborra as a code owner May 1, 2024 17:09
ghcide/test/exe/HighlightTests.hs Outdated Show resolved Hide resolved
ghcide/test/exe/HighlightTests.hs Outdated Show resolved Hide resolved
@soulomoon
Copy link
Collaborator Author

soulomoon commented May 2, 2024

This should be the relating issue for the highlight test
#2915 and wz1000/HieDb#45

@soulomoon soulomoon changed the title [Migrate FindDefinitionAndHoverTests HighlightTests and fix HighlightTests] part of #4173 Migrate ghcide tests to hls test utils Migrate FindDefinitionAndHoverTests HighlightTests part of #4173 and fix HighlightTests May 2, 2024
@soulomoon soulomoon changed the title Migrate FindDefinitionAndHoverTests HighlightTests part of #4173 and fix HighlightTests Migrate FindDefinitionAndHoverTests and HighlightTests part of #4173 and fix HighlightTests May 2, 2024
@soulomoon
Copy link
Collaborator Author

soulomoon commented May 2, 2024

I have added a small patch to filter out the evidence nodeids before carrying a seach for highlighting items.
The problem should be gone now.
@michaelpj See if the fix is good ?

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 for taking great care of the test suite!

@michaelpj
Copy link
Collaborator

The fix seems plausible, but also I think there is still an underlying issue, right? So it would be nice to not forget about that.

@soulomoon
Copy link
Collaborator Author

soulomoon commented May 2, 2024

The root is the introducion of ghc generated nodes,
but filter them out is fine for our highlights.

@soulomoon soulomoon enabled auto-merge (squash) May 2, 2024 12:54
@soulomoon soulomoon merged commit 75cb0b9 into haskell:master May 2, 2024
39 checks passed
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