JIRA RSRP-44078 Confusion

I was just reading the comments on RSRP-44078 by Oleg Stepanov and the behavior described makes perfect sense:
The IntelliSense is case-insensitive (if it was case sensitive, you wouldn't get "WriteLine" by typing "write"). What happens is that in the entire application you used WriteLine more frequently so it is preselected by default. However, when ReSharper sees a perfect match (typed "write" and there is a method named "Write") it preselects it. So this is a feature, not a bug. We currently don't make scoped frequency analysis to preselect methods which are more frequently used in a local scope.
The comments seem to indicate exactly what I think should happen; that is, if I type "Console.write" ReSharper should notice an exact match and move the highlight from WriteLine to Write.

The issue is that this is not the current behavior:

If I type Console.write (note the incorrect case), the highlight remains on WriteLine even though I've typed an exact match for Write. Thus, when I type Console.write ReSharper completes with Console.WriteLine().

If I type Console.Write (note the correct case), ReSharper does move the highlight from WriteLine to Write and ReSharper completes with Console.Write().

Does this make sense?

Attachment not added (content type not allowed): "att1.html"

1 comment
Comment actions Permalink

Hello Lothan,

Yes it does. For some reason on the build which was installed on my machine
when I checked the issue was giving the correct behaviour but now it doesn't.
I reopened the issue, thanks for pointing out.

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I was just reading the comments on RSRP-44078 by Oleg Stepanov and the
behavior described makes perfect sense:
The IntelliSense is case-insensitive (if it was case sensitive, you
wouldn't get "WriteLine" by typing "write"). What happens is that in
the entire application you used WriteLine more frequently so it is
preselected by default. However, when ReSharper sees a perfect match
(typed "write" and there is a method named "Write") it preselects it.
So this is a feature, not a bug. We currently don't make scoped
frequency analysis to preselect methods which are more frequently used
in a local scope.
The comments seem to indicate exactly what I think should happen; that
is, if I type "Console.write" ReSharper should notice an exact match
and move the highlight from WriteLine to Write.
The issue is that this is not the current behavior:

If I type Console.write (note the incorrect case), the highlight
remains on WriteLine even though I've typed an exact match for Write.
Thus, when I type Console.write ReSharper completes with
Console.WriteLine().

If I type Console.Write (note the correct case), ReSharper does move
the highlight from WriteLine to Write and ReSharper completes with
Console.Write().

Does this make sense?



0

Please sign in to leave a comment.