Skip to content

Rename not working #9

Description

@fgenolini

Hi,

Thanks for a simple useful extension to Visual Studio.

In Visual Studio 2017, with Stateless Designer 1.4, renaming a stateless file does not result in the class name being renamed.
Expected behavior: both XML item and automatically generated C# class name should take the new name after file rename

Example:

  • create new stateless file called WrongName.stateless
  • add some triggers, states, and transitions
  • save all files
  • using the Solution Explorer, right-click on the file and rename to CorrectName.stateless
  • both the stateless file and the cs file have the new name
  • however the and the generated C# class name are still WrongName
  • attempt to manually edit the and the extension reverts your edit to WrongName instead of keeping CorrectName, and the C# still has a class called WrongName

Workaround (annoying):

  • Edit the stateless file: set to CorrectName
  • Save
  • Delete the automatically generated cs
  • Close Visual Studio 2017
  • Reopen Visual Studio 2017
  • The CorrectName is now used everywhere

Regards,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions