-
-
Notifications
You must be signed in to change notification settings - Fork 389
[Migrate diagnosticTests] part of #4173 Migrate ghcide tests to hls test utils #4207
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
Merged
soulomoon
merged 25 commits into
haskell:master
from
soulomoon:soulomoon/update-ghcide-tests-hls-test-utils-DiagnosticTests
May 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
361131e
migrate diagnosticTests
soulomoon fa0e4de
Merge branch 'master' into soulomoon/update-ghcide-tests-hls-test-uti…
soulomoon ef077d2
add test no kick to hls-test-utils
soulomoon cc7d3cb
clean up ghcide config
soulomoon b887243
use fs
soulomoon 158caa9
reduce write file
soulomoon 56195f5
fix up
soulomoon b8c6ca9
fix ide log
soulomoon 46b5f04
fix
soulomoon 1554f87
Update ghcide/src/Development/IDE/Main.hs
soulomoon 4388ac0
Update ghcide/test/exe/DiagnosticTests.hs
soulomoon f6a7f48
Update hls-test-utils/src/Test/Hls.hs
soulomoon aee5c53
Update plugins/hls-refactor-plugin/test/Main.hs
soulomoon 8aa41f3
Update plugins/hls-refactor-plugin/test/Main.hs
soulomoon 7d22fb7
Update ghcide/test/exe/DiagnosticTests.hs
soulomoon cfd3f53
update recorder
soulomoon d40c643
fix
soulomoon a03aa22
cleanup
soulomoon e2a50f2
Merge branch 'master' into soulomoon/update-ghcide-tests-hls-test-uti…
soulomoon 5ffbf2f
Merge branch 'master' into soulomoon/update-ghcide-tests-hls-test-uti…
soulomoon c8aa5ca
fix
soulomoon 1f7f49f
Merge branch 'master' into soulomoon/update-ghcide-tests-hls-test-uti…
soulomoon d08228d
nitpick
soulomoon 354854e
Update hls-test-utils/src/Test/Hls.hs
soulomoon 726a88d
add variable
soulomoon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I'm not sure all these functions are necessarily worth it. How bad would it be to just have the
FileSystem -> Session ()
variants and then write_ -> whatever
at the use sites?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Emm, we are at somewhat funny situation, that the one without the extra FileSystem are the most used.
Sure, for not frequent used ones, it would be fine we write
_ -> whatever
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I'm wondering how bad it would be. Otherwise we have a lot of very similar variant functions 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I mean since we have a lot of test that does not need the
FileSystem
,adding a tons of
_ -> whatever
is visually bad and and not convenient for us to do the migration.That is why I want to either do the typeclass polymorphic or just duplicate the test runner function variant.