Reporter | 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:
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:
In the above example, I started typing dis and then let smart completion finish it to "displayName." However, only the original "dis" is displayed.
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.