Skip to content

IndexOutOfRangeException from RenameToUpperCaseCodeFixProvider.RegisterCodeFixesAsync #3636

@jnyrup

Description

@jnyrup

In this snippet put the cursor on _ and press ctrl + ,

public class Class1
{
    void _() { }
}
System.IndexOutOfRangeException : Index was outside the bounds of the array.
   at async StyleCop.Analyzers.NamingRules.RenameToUpperCaseCodeFixProvider.RegisterCodeFixesAsync(<Unknown Parameters>)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.CodeAnalysis.CodeFixes.CodeFixService.GetCodeFixesAsync(<Unknown Parameters>)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)

version: 1.2.0-beta.435

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions