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

RSRP-329850: Suggest user to modify method signature when using named arguments

$
0
0
Reporter Kirill Orlov (diverofdark) Kirill Orlov (diverofdark)
Created Sep 10, 2012 9:29:59 PM
Updated Oct 16, 2018 4:11:01 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Let's see at following code:
        private void doSomething(int a=0,int b=1, int c=2);

doSomething(b:9, {caret}d:10)

There should be an quickFix which adds new parameter for existing method.

RSRP-198812: Provide option to specialize a generic type

$
0
0
Reporter Werner Strydom (bloudraak) Werner Strydom (bloudraak)
Created Nov 26, 2010 4:35:30 AM
Updated Oct 16, 2018 4:17:47 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Consider the following generic class:
public class Repository<T> : IRepository<T>
{
// members omitted for clarity
}


When I place the cursor on Item, Resharper provide a suggestion that allows me to create a derived type. I'd like ReSharper to provide me an option to create a specialized class, such as

public class ItemRepository : Repository<Item>
{
// members omitted for clarity
}


where I only have to type "Item" and the type "Item". Due to the fact that names are general conistent (aka ItemRepository for Repository<Item>, ItemService for IService<Item>), my suggestion would be to allow me to specify the type first and then deduce the name of class (or interface).

It reduces the number of steps and typing I have to do when create a derived specialized type from a generic type.

RSRP-200888: Mark "folder provides namspace" CA

$
0
0
Reporter Eugene Legkiy (jenya.legkiy) Eugene Legkiy (jenya.legkiy)
Created Dec 22, 2010 5:28:12 PM
Updated Oct 16, 2018 4:20:24 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
For CheckNamespace highlight.
As a heauristic - difference for one item in path ( src.somthing VS somthing)

RSRP-206613: Convert to C# named parameters

$
0
0
Reporter sean kearon (seankearon) sean kearon (seankearon)
Created Jan 22, 2011 2:02:27 PM
Updated Oct 16, 2018 4:21:19 PM
Resolved Oct 16, 2018 4:21:19 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed
Type Feature
Fix version Unidentified prior version
Affected versions 5.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Add a context action to convert a method call to use named parameters.


Given a method:
void AddPerson(string name, int age){...}

The context action would convert the call
AddPerson("Fred", 21);

Into this:
AddPerson(name: "Fred", age: 21);

RSRP-9398: Refactoring Strings: Strings to StringBuilder

$
0
0
Reporter Amir Kolsky (kolsky) Amir Kolsky (kolsky)
Created Aug 5, 2006 3:46:19 PM
Updated Oct 16, 2018 4:24:16 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
From "Jesse Houwing" no_mail@jetbrains.com
These are common performance hogs found in code
string result = "";
foreach (string s in strings)
{
result+=s;
}
to
StringBuilder resultBuilder = "";
foreach (string s in strings)
{
resultBuilder.Append(s);
}
string result = resultBuilder.ToString();

RSRP-9399: Refactoring Strings: Catenation to StringBuilder

$
0
0
Reporter Amir Kolsky (kolsky) Amir Kolsky (kolsky)
Created Aug 5, 2006 3:46:20 PM
Updated Oct 16, 2018 4:24:30 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State To be discussed
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
Another from Jesse Houwing:
Turn
string result = x + b + c;
to
StringBuilder resultBuilder = x;
resultBuilder.Append(b);
resultBuilder.Append(c);
string result = resultBuilder.ToString();

RSRP-210420: Context Action: String.Format -> StringBuilder

$
0
0
Reporter Slava Tutushkin (slava.tutushkin) Slava Tutushkin (slava.tutushkin)
Created Feb 1, 2011 4:50:54 PM
Updated Oct 16, 2018 4:24:30 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-211961: Review context actions in VB regarding qualifier usages with "With Construct"

$
0
0
Reporter Eugene Legkiy (jenya.legkiy) Eugene Legkiy (jenya.legkiy)
Created Feb 4, 2011 6:02:56 PM
Updated Oct 16, 2018 4:24:52 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Open
Type Task
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-212307: New Context Actions: Collapse/Expand if-statement

$
0
0
Reporter Markus Hamburger (hama) Markus Hamburger (hama)
Created Feb 7, 2011 12:28:19 PM
Updated Oct 16, 2018 4:28:38 PM
Resolved Oct 16, 2018 4:28:38 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
New Context Action for "if"-statement:

Replace
"If <condition> Then <statement> Else <statement>"

by
"If <condition> Then
<statement>
Else
<statement>
End If"

and backwards.

RSRP-42006: Context action: convert block if to line if and vice versa in VB

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created Jun 1, 2007 5:37:07 PM
Updated Oct 16, 2018 4:28:38 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.2
Fixed In Version ReSharper Undefined
VsVersion All Versions

RSRP-471810: "var" keyword is not available for autocompletion inside "foreach"

$
0
0
Reporter Ivan Migalev (Ivan.Migalev) Ivan Migalev (Ivan.Migalev)
Created Oct 11, 2018 10:03:29 AM
Updated Oct 16, 2018 4:33:02 PM
Resolved Oct 16, 2018 4:33:02 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Normal
State Fixed
Type Bug
Fix version 2018.3
Affected versions 2018.2.3
Fixed In Version ReSharper Undefined
VsVersion All Versions

Consider I have this simple .NET Core program:

using System;

namespace ConsoleApp17
{
    class EnvironmentVariable {}
    
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

Now, I want to enter foreach (var x in "Hello") {} in the Main method. So I type:

Now if I press Space, it will end up completing something unrelated: EnvironmentVariable, VarEnum or something else.

Please add var keyword to the autocomplete list there. Reproduced in both Rider and ReSharper. May be related to RSRP-470960.

JetBrains ReSharper Ultimate 2018.3 EAP 2 D Checked Build 183.0.20181008.115722-eap02d
This pre-release version will expire in 26 days
dotCover 2018.3.20181008.121226-eap02d
dotTrace 2018.3.20181008.121231-eap02d
ReSharper C++ 2018.3.20181008.120854-eap02d
TeamCity Add-in 2018.3.20181008.121021-eap02d
ReSharper 2018.3.20181008.120956-eap02d
dotMemory 2018.3.20181008.121228-eap02d

RSRP-212594: 'Create derived type' context action wanted in VB

$
0
0
Reporter Olga Lukianova (olka) Olga Lukianova (olka)
Created Feb 7, 2011 8:39:01 PM
Updated Oct 16, 2018 4:33:46 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
public class Foo{caret}
{
}

RSRP-213300: TPL Parallel Refactorings for Context Actions

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Feb 9, 2011 5:36:56 PM
Updated Oct 16, 2018 4:35:04 PM
Resolved Oct 16, 2018 4:35:04 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version No Fix versions
Affected versions 5.1.2
Fixed In Version ReSharper Undefined
VsVersion All Versions
It will be nice if ReSharper could perform context actions for TPL, like converting regular "foreach" to "Parallel.ForEach".

RSRP-331322: New Refactor Actions...

$
0
0
Reporter John Smoth (emdadgar2) John Smoth (emdadgar2)
Created Oct 12, 2012 11:59:06 AM
Updated Oct 16, 2018 4:37:03 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
I have some suggestion for refactor actions:

1. Linq2Entity -> Compiled entity query
2. for -> Parallel.For
3. foreach -> Parallel.ForEach
4. Convert a method to ASync
5. Make method fluent
6. Inline a method

RSRP-221893: New context action: Inline constant string argument inside String.Format call

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created Mar 2, 2011 2:31:43 AM
Updated Oct 16, 2018 4:46:36 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
This action should replace the {} occurrences of a constant string argument of a String.Format method.
The action should be available on {0} inside the first argument of a String.Format method and on the argument that can be inlined.
Example code:
class C
{
public string Foo()
{
return String.Format("May inline {0}","constant value");//caret right before "{0}"
}
}
Result:

class C
{
public string Foo()
{
return String.Format("May inline constant value");//caret right before "{0}"
}
}

RSRP-471367: Find usages: type usages of field declarations are not under field grouping node

$
0
0
Reporter Alexander Shvedov (shvedov) Alexander Shvedov (shvedov)
Created Sep 3, 2018 3:48:41 PM
Updated Oct 16, 2018 4:54:07 PM
Resolved Oct 16, 2018 4:54:07 PM
Subsystem Navigation - Search (Find Usages)
Assignee Alexander Ulitin (alexander.ulitin)
Priority Major
State Fixed
Type Bug
Fix version 2018.3
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions


Type usages under method return types are grouped under method nodes.
I guess this is related to field being parts of "multi-declarations", we can check if multi-declaration declares only one member and count the whole multi-declaration as a field declaration in this case.
Please, check constant declarations and multi field-like event declarations as well.

RSRP-233503: Create overload without unused parameters CA.

$
0
0
Reporter Sergey Shkredov (serjic.shkredov) Sergey Shkredov (serjic.shkredov)
Created Mar 21, 2011 7:56:51 PM
Updated Oct 16, 2018 4:56:09 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
For function:
Foo(a,b,c);
where some parameters are unused and we can not remove them (Foo implements interface, is used as method group,...)
suggest CA 'Create overload without unused parameters' which creates new overload and delegates to it.
Foo(a,b,c)
{
Foo(a);
}

private Foo(a)
{
... old code here...
}

RSRP-236047: New context action 'Convert if to method call with ?: operator'

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created Mar 24, 2011 7:56:05 PM
Updated Oct 16, 2018 4:58:33 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Improvement
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Consider code:
        private int Foo(Class1 s1, Class1 s2, Class2 x, Class2 y)
{
if (x.Equals(y))
{
s1.Method();
}
else
{
s2.Method();
}
}
The action should be available as a hint on 'if'.
It should produce the following code:

        private int Foo(Class1 s1, Class1 s2, Class2 x, Class2 y)
{
(x.Equals(y) ? s1 : s2).Method();
}

Note that at present similar context actions are available:
  • as a hint on 'if' in the following case:
        private int Foo(Class1 s1, Class1 s2, Class2 x, Class2 y)
{
if (x.Equals(y))
{
return s1.Method();
}
else
{
return s2.Method();
}
}
  • as a suggestion on 'if' in the following case:

private int Foo(Class1 s1, Class1 s2, Class2 x, Class2 y)
{
if (x.Equals(y))
{
s1.Method(1);
}
else
{
s1.Method(2);
}
}

RSRP-236056: Context action 'Merge identical 'if' branches'

$
0
0
Reporter Andrey Simanovsky (ands) Andrey Simanovsky (ands)
Created Mar 24, 2011 8:08:30 PM
Updated Oct 16, 2018 5:02:52 PM
Resolved Oct 16, 2018 5:02:52 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Duplicate
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions
At present there are suggestions and hints that replace 'if' branches with ?: operator when the branches are similar (it may or may not appear if the branches are identical). However, when branches are identical it makes sense to merge branches rather than replace with ?: operator.
For example suggest hint on the following code:
        private int Foo(Class1 s1, Class1 s2, Class2 x, Class2 y)
{
if (x.Equals(y))
{
s1.Method(1);
}
else
{
s1.Method(1);
}
}

RSRP-116395: CA to collapse identical if/elseif blocks into single if with OR of conditions

$
0
0
Reporter Drew Noakes (drewnoakes) Drew Noakes (drewnoakes)
Created Aug 3, 2009 2:09:19 AM
Updated Oct 16, 2018 5:02:52 PM
Subsystem Context Actions
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Open
Type Feature
Fix version Backlog
Affected versions 2018.3
Fixed In Version ReSharper Undefined
VsVersion All Versions
Consider this code I found:

if (e.Property == MaxDepthProperty)
{
UpdateShouldRecurse();
}
else if (e.Property == MinAreaProperty)
{
UpdateShouldRecurse();
}
else if (e.Property == LevelProperty)
{
UpdateShouldRecurse();
}

This should become:

if (e.Property == MaxDepthProperty || e.Property == MinAreaProperty || e.Property == LevelProperty)
{
UpdateShouldRecurse();
}
Viewing all 106942 articles
Browse latest View live


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