-
Notifications
You must be signed in to change notification settings - Fork 106
Tooltips only show at the last character active patterns #217
Comments
@rneatherway Is this the same issue as tooltips where you have to advance to the end of the ident, looks like it, maybe this is a fringe parser case? |
I just tried it and on my system I don't get a tooltip at any point in MemberName. I did notice that if I hover at the point you indicate then the parsing now picks up For all positions I get |
Actually now it only works at:
I guess fast forwarding to the ident to the last position of the ident is whats going to fix it. |
This seems to do the trick: https://github.com/rneatherway/fsharpbinding/tree/issue217 Let me know what you think, it passes the regression suite on fsautocomplete. (And works in Monodevelop!) |
New version just pushed, hopefully fixes it. It doesn't quite work on my monodevelop but I think this is because it's out of date. |
And again, I updated monodevelop and it works for me now. |
Didn't make any difference for me. Also it doesn't work for this position
It does work for: It think it should logically work for every character between the banana clips like this: |
Did you try the latest commit? Those examples all work for me. Making it not work outside the banana clips might be difficult because the standard ident parser allows the empty string, and this is what is causing is to succeed in the case of:
|
The last one worked, I think this is fine then, it was more about the left and right hand side being consistent. I think the tooltips have improved a great deal with all the work thats been done on them of late! :-) |
Ah good, yes I think things are coming along very nicely! I actually agree with you about the hover location, as in I think this is best:
And I can make idents be required to have length at least 1 without breaking anything, but then it isn't possible to distinguish between the first pipe and subsequent pipes inside the active pattern. So I can't prevent:
without also preventing:
which was the previous situation. I think people will be unlikely to notice these little quibbles hopefully! I'll merge it in then. |
The following code only shows a tooltip at the
§
indicated:The text was updated successfully, but these errors were encountered: