-
Notifications
You must be signed in to change notification settings - Fork 23
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
(stack-mode) Type info should use span yielded by backend #70
Comments
Also, |
The piggy back issue of |
Also in this vein, two issues with
|
Are you selecting the word when you use |
Ah yeah that's working. So that solves (1) but (2) still remains. May be related to my other issues regarding the new regressions. |
If I ask for the type of an expression, but only select part of it, then that's the only part that appears in the result.
For example, where
|
delineates my selection,put|StrLn "H|ello!"
, I'll getStrLn "H :: IO ()
. This is why the type infos come with spans that say what they refer to.Of course, if the buffer has been edited since the last compilation, then both the query span and results span may be off. Maybe it would be a good idea to have ide-backend directly provide the text of the code that the type info refers to.
The text was updated successfully, but these errors were encountered: