Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract class to a new file from file with regions included creates a class with unclosed #region tag #39640

Open
vsfeedback opened this issue Nov 1, 2019 · 0 comments
Assignees
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature - Extract Class help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-CodeStyle Built-in analyzers, fixes, and refactorings
Projects
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


Say, we have a file KekPuks.cs:

namespace LolKek
{
  #region Lol and Kek here
  class Lol 
  {
    
}

class Kek
  {
  }

#endregion
}

And we want to extract class Kek to a new file. We use VS own refactoring method, then VS will create a new file named Kek.cs:

namespace LolKek
{
  class Kek
  {
  }

#endregion
}

As you see, the new generated source file will contain #endregion tag without started #region.

Just checked it in the VS2017 15.9.14, 15.9.15 versions, also in the VS2019 16.2.1, 16.2.2


Original Comments

Visual Studio Feedback System on 8/19/2019, 00:00 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Visual Studio Feedback System on 8/19/2019, 03:22 PM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.


Original Solutions

(no solutions)

@ryzngard ryzngard self-assigned this Nov 1, 2019
@jinujoseph jinujoseph added help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-CodeStyle Built-in analyzers, fixes, and refactorings labels Nov 5, 2019
@jinujoseph jinujoseph added this to InQueue in Small Fixes via automation Nov 5, 2019
@jinujoseph jinujoseph added the Bug label Nov 5, 2019
@jinujoseph jinujoseph added this to the Backlog milestone Nov 5, 2019
@sharwell sharwell added the Developer Community The issue was originally reported on https://developercommunity.visualstudio.com label Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature - Extract Class help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-CodeStyle Built-in analyzers, fixes, and refactorings
Projects
Small Fixes
  
InQueue
Development

No branches or pull requests

5 participants