-
-
Notifications
You must be signed in to change notification settings - Fork 401
Implement signature help #4626
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
Draft
jian-lin
wants to merge
20
commits into
haskell:master
Choose a base branch
from
linj-fork:pr/signature-help
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Implement signature help #4626
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7a54a1d
WIP: add basic boilerplate for signature help plugin
jian-lin 9168b74
WIP: finish signature help plugin MVP
jian-lin 4d7fa57
WIP: remove unused dependencies
jian-lin 622c8ec
WIP: fix func-tests
jian-lin 62fbccf
WIP: add basic tests
jian-lin a6635ca
Change expected test results considering the cursor shape
jian-lin bf0b4d5
Replace maybe with case for better readability
jian-lin c95d6e4
Call extractInfoFromSmallestContainingFunctionApplicationAst once
jian-lin 3dc1ec8
Add missing ParameterInformation for multi-line tests
jian-lin dca1311
Add a signature help test for type constraint with kind signatures
jian-lin 471958f
Add a signature help test for higher-order function
jian-lin d603ec4
Show more types: each type as one signature help
jian-lin faa4e48
Adjust import for the removal of hie-compat (#4613)
jian-lin 9bea0e3
Use structured type and type string to generate signature help
jian-lin db5e59e
Add signature help test: 2 type constraints
jian-lin fdd5acd
Add signature help test: middle =>
jian-lin c6ece42
Add signature help test: => in argument
jian-lin fe2d618
Add 2 signature help tests: RankNTypes(forall in middle)
jian-lin c3224d7
Add signature help test: LinearTypes
jian-lin 081ea8f
Add another signature help tests: RankNTypes(forall in middle)
jian-lin 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.
I think this is reasonable. Really
combineResponses
should have a way to return an error. There are a bunch of methods where it really only makes sense if we have one handler.We could try to combine responses: we would combine the signatures, and so long as only one of them indicated an active signature it would be okay. But that's a bit sketchy and I doubt we'll have several anyway!