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

RSRP-288028: Template scopes are not applied correctly

$
0
0
Reporter Joe White (joewhite) Joe White (joewhite)
Created Jan 27, 2012 1:26:48 AM
Updated Jan 27, 2012 1:26:48 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1
Fixed in build No Fixed in build
I tried to define a new template for a test method. In the "Select scopes" dialog, I selected "In files matching:" and entered a pattern of *Test*.cs, and then I also selected "In C# 2.0+ where type member declaration is allowed".

Expected behavior: this template should only show up in the completion list if I'm in a file called *Test*.cs and I'm in a part of the code where a member declaration is allowed.

Actual behavior: this template is always in the list, whether or not I'm in a file with Test in the name, and whether or not I'm someplace where a member declaration is allowed. I can be inside a method body in a file called Program.cs, and the template is still shown in the list. It should respect the scope filters I specified when I created the template.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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