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

RSRP-186030: [Move to another file to match type name] helper does not trim the pseudo extensions

$
0
0
Reporter Tatham Oddie (tatham) Tatham Oddie (tatham)
Created Jul 10, 2010 1:14:08 PM
Updated Apr 7, 2018 11:25:24 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Open
Type Bug
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
Creating a class inside an ASP.NET codebehind file and trying to move it to another file using the helper puts it in the wrong file.

For example, if you create class Foo in Bar.ascx.cs, the helper will extract it to Foo.ascx.cs.

It should go to Foo.cs.

I imagine the helper is using Path.GetFilenameWithoutExtension which returns "Bar.ascx". This is technically accurate, because ".ascx" is part of the filename where as ".cs" is the actual extension. Considering the usage scenario for this feature though (.NET devs), either the pseudo extensions should be trimmed or there should be explicit support for .aspx.cs, .ascx.cs and .ashx.cs.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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