Add ctrl+click hyperlinks for Haskell identifiers and URLs in .hs files #123
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.
This implements #117, URLs are also working, no matter where they are. There are some edge cases where the behavior is a bit funny, e.g. when you have
test = "http://google.com"
then the URL detector and the Haskell detector are competing with each other when hovering the URL (the first one wins). This could be fixed by ignoring such things as strings completely, but this must be fixed in the regular "Open Declaration" action, as I make use of that code.It works quite well, also very fast. I noticed though that sometimes the buildwrapper process isn't long-running (after certain actions, don't know) and then each call to thingatpoint spawns a new process which gets really slow. But this is unrelated to this pull request and should be fixed in general.