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

RSRP-287573: Live Templates with multiple occurances of an editable variable don't always recieve the final user edit

$
0
0
Reporter Chris Long (Squeeself) Chris Long (Squeeself)
Created Jan 4, 2012 3:38:05 AM
Updated Jan 4, 2012 3:38:05 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Slava Tutushkin (slava.tutushkin)
Subsystem Live templates
Affected versions 6.0, 6.1
Fixed in build No Fixed in build
I have the following Live Template:

argnull
if ($arg$ == null)
    throw new ArgumentNullException("$arg$");


The first occurance of $arg$ is the editable version (set to execute smart completion). Editing it works fine. As I type a parameter name, the second occurance in the string matches the first. However, if I use any type of smart completion, say, typing the first couple of characters and then using the completion menu to select the proper name, the second occurance only displays the characters I typed, and not the final completed item. It seems as if the "editable" state is removed before the completion event occurs, so the linked text is not transferred.

Example:
argnull
if (displayName == null)
    throw new ArgumentNullException("dis");


In the above example, I started typing dis and then let smart completion finish it to "displayName." However, only the original "dis" is displayed.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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