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

Unable to see method signatures in a file having nested regions #391

Open
michaelAngeloEgypt opened this issue Jan 21, 2017 · 2 comments
Open

Comments

@michaelAngeloEgypt
Copy link

Environment

  • Visual Studio version: 2015 Community
  • CodeMaid version: 10.2
  • Code language: C#

Description

I have an extensions file organized into regions with subregions as follows:

  #region String functions 
       #region conversions 
           public static string ToYMD(this DateTime src) 
           ..... 
      #endregion conversions 
   #endregion String functions 
   #region List functions 
   ... etc

Steps to recreate

  1. create a file with regions and subregions
  2. click on CodeMaid spade

this is how the file looks like

image

Current behavior

You will see CodeMaid displaying only the regions and subregions names without the method signatures

image

Expected behavior

CodeMaid should display the method signatures as well as regions and subregions names

@codecadwallader
Copy link
Owner

Thanks for reporting the issue. I'm unable to reproduce it with normal files that are included in the solution.

Is your file external to the solution? For example if you just open a file from Windows Explorer, it won't be a part any solution/project. When that happens, if you try to clean the file you'll get a warning from CodeMaid that the file is external and the information we have is limited. The VS APIs will only report data for files that are a part of the solution/project. You'll still see the regions because those are not a part of the API but just some text recognition we do.. which can work even on external files.

@codecadwallader
Copy link
Owner

Example of nested regions with a file in the solution

image

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

No branches or pull requests

2 participants