Bug Report T374402
Visible to All Users

Refactoring - 'Add Parameter' adds a parameter twice in Visual Studio 2015 Update 2

created 9 years ago

I have this simple class

C#
namespace CodeRushIssue { class Program { static void Main(string[] args) { } private static void Foo() { } } }

Move to inside the Foo() parentheses
Ctrl + .
Add Parameter
Type a type name (I used string)
Press Enter to move to the parameter name
Type whatever
Press enter to finish

At this point the parameters should have been added twice.

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

Additional information:

Hi Dominic,

Thanks for pointing out this issue to us. We have researched it and determined that it is related to changes in Update 2 for Visual Studio 2015. We have made changes for compatibility CodeRush for Roslyn with this version and prepared a special build that contains them: DevExpress.CodeRush.Roslyn-1.0.11.16125.vsix. Please download and install this build (it is necessary to remove the current CodeRush for Roslyn version via Extension Manager). Let us know whether it solves the issue on your side.

    Comments (2)

      The special build solves the issue, thanks.

      DevExpress Support Team 9 years ago

        We are happy to hear it! Thanks for informing us of your results.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.