Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-240789: Code Completion of Parameter Names in Strings Leaves Garbage Behind

$
0
0
Reporter Serge Baltic (baltic) Serge Baltic (baltic)
Created Mar 30, 2011 9:54:38 PM
Updated Feb 2, 2012 10:13:17 PM
Resolved Feb 2, 2012 5:59:45 PM
Priority Major
Type Bug
Fix versions 6.1
State Fixed
Assignee Sergey Shkredov (serjic.shkredov)
Subsystem Code Completion
Affected versions No Affected versions
Fixed in build 6.5.1.3943
One of the repro scenarios:
    public void Do(string stringValue, int intValue)
    {throw new ArgumentOutOfRangeException("");}


Place caret inside "". A parameter name is expected, so completion should be suggesting the param names.

Invoke basic completion with Ctrl+Space. Type "sv". Choose stringValue from the list, if not yet, and accept with Enter. You get:

    public void Do(string stringValue, int intValue)
    {throw new ArgumentOutOfRangeException("stringValuesv");}


Note the undesired sv suffix which was a completion prefix but failed to be replaced with the completed content.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>