Stateless-Designer icon indicating copy to clipboard operation
Stateless-Designer copied to clipboard

Rename not working

Open fgenolini opened this issue 8 years ago • 0 comments

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,

fgenolini avatar Sep 25 '17 09:09 fgenolini